Skip to content
Back to formatted view

Raw Message

Message-ID: <43396F07@webmail.ncl.ac.uk>
Date: 2005-09-28T22:43:44Z
From: nwew
Subject: Problem with memory footprint of qq plot generated with lattice

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