[R] Problem with memory footprint of qq plot generated with lattice
nwew
W.E.Wolski at newcastle.ac.uk
Thu Sep 29 00:43:44 CEST 2005
Dear R helpers,
I generate a qq plot using the following function call.
qqmath(~val|ind,data=xx
,distribution=function(p) qt(p,df=19)
,ylab="Sample Quatinles"
,xlab="Theoretical Quantiles"
,aspect=1
,prepanel = prepanel.qqmathline
,panel=function(x,y)
{
panel.qqmathline(y, distribution=function(p) qt(p,df=19),col=2)
panel.qqmath(x, y , distribution=function(p)
qt(p,df=19),pch=".",cex=2)
}
)
dim(xx)
[1] 680237 2
unique(xx[,1])
[1] 500-530 1000-1110 2000-2200 3400-3700
Levels: 500-530 1000-1110 2000-2200 3400-3700
It means that actually four small qqplots are drawn.
The problem is that the generated pdf is extremely large.
-rw-r--r-- 1 nwew bayes 19734746 2005-08-27 15:38 Distr-qqplot.pdf
Suggestions howe to reduce the size but keep the quality are wellcome.
cheers
Eryk
More information about the R-help
mailing list