[R] image quality
Philippe Glaziou
glaziou at gmail.com
Tue Feb 12 04:31:53 CET 2008
On 2/11/08, John Lande <john.lande77 at gmail.com> wrote:
> I am writing a sweave documentation for my analysis, and I am plotting huge
> scatter plot data for microarray.
> unlucly this take a lot of resource to my pc because of the quality of the
> image which is to high (I see the PC get stuck for each single spot).
> how can I overcome this problem? is there a way to make lighter image?
> john
John,
You may try to plot random samples of your data. E.g.:
df1 <- data.frame(x=rnorm(10000), y=rnorm(10000))
df1.small <- df1[sample(nrow(df1),1000), ]
with(df1.small, plot(x,y))
HTH,
Philippe
More information about the R-help
mailing list