I have 3 millions data points and plotted in R as a point. Then I save my plot as pdf file. This works great, but when I open the file it takes time to display all points. Actually it shows like an animated plot. My questions are:
(1) how can I display this plot as an image, i.e no animation.
(2) how to reduce the size keeping good resolution. My original data takes about 10MB and not suitable for publication.
To demonstrate this, use the following code, open pdf document and check the animation.
f<-rand(3E5,2)*1E4
pdf(file="test.pdf")
plot(f[,1],f[,2], type="p",cex=0.1)
graphics.off()