To display many small graphics one above the another (like Edward Tufte's sparklines), I'd like to use layout in the graphics package with more than 15 rows. I found that the limit of 15 is set by #define MAX_LAYOUT_ROWS 15 in https://svn.r-project.org/R/trunk/src/include/Graphics.h but I 'm not familiar enough with compilers to modify this. Thank you for all help Jeroen
Jeroen Van Houtte wrote:> To display many small graphics one above the another (like Edward Tufte's > sparklines), I'd like to use layout in the graphics package with more > than 15 rows. > > I found that the limit of 15 is set by > #define MAX_LAYOUT_ROWS 15Well, what about replacing 15 by something like 100? The point is that you should look where MAX_LAYOUT_ROWS is used for calculations and whether there might result any problem after increasing it.> in > https://svn.r-project.org/R/trunk/src/include/Graphics.h > but I 'm not familiar enough with compilers to modify this.Looking into your mail header [telling us you are using Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)], I see you are using Windows and probably never have compiled R yourself (please read the posting guide which tells you to mention relevant information such as the OS in use). Please read the file R/src/gnuwin32/Install. It tells you how to compile R yourself and which tools are required. Uwe Ligges> Thank you for all help > Jeroen > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Thu, 2005-01-13 at 17:11 -0600, Jindan Zhou wrote:> Hello R-List, > > The question is related to R, but not strictly: > > I have generated a Q-Q plot with some 15,000 data points, when saved in > postscript format, the file became really large, which is not good to be > included in a LaTex file, as the output pdf file will be too big in file > size, too. If I save the graph in jpeg format, the quality is simply > unacceptable. > > Do you have a workaround for this problem? What is the best graph format > in R that preserves the quality while minimizes the file size? > > Thanks for input! > > JindanYou might want to scan through this recent thread: http://tolstoy.newcastle.edu.au/R/help/04/11/7858.html HTH, Marc Schwartz
Given that you are doing a Q-Q plot, I strongly suspect that other then in the extreme tails, there will be no loss of visible information if you plot only 1 out of every 10 of the ordered values instead of all of them (as the ordered values are highly correlated). This makes the file size manageable. If you are interested in the extreme tails (the highest and lowest 50 or so points), these probably should be examined separately. I would guess that they are not part of the rest of the distribution, anyway (whatever that means). -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA "The business of the statistician is to catalyze the scientific learning process." - George E. P. Box> -----Original Message----- > From: r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Jindan Zhou > Sent: Thursday, January 13, 2005 3:11 PM > To: r-help at stat.math.ethz.ch > Subject: [R] Graph format: quality vs. file size > > Hello R-List, > > The question is related to R, but not strictly: > > I have generated a Q-Q plot with some 15,000 data points, > when saved in > postscript format, the file became really large, which is not > good to be > included in a LaTex file, as the output pdf file will be too > big in file > size, too. If I save the graph in jpeg format, the quality is simply > unacceptable. > > Do you have a workaround for this problem? What is the best > graph format > in R that preserves the quality while minimizes the file size? > > Thanks for input! > > Jindan > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! > http://www.R-project.org/posting-guide.html >