dear all, 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 [[alternative HTML version deleted]]
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? > johnJohn, 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
Have a look at the smoothScatter() function in the 'geneplotter' (Bioconductor) package. That might be sufficient for you. Alternatively, generate a bitmap (e.g. PNG) image plot instead (at least pdflatex can import those as is). /Henrik On Feb 11, 2008 2:18 AM, John Lande <john.lande77 at gmail.com> wrote:> dear all, > 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 > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >