[R] Mutiple page trellis plots with relation = "free" or "sliced"

Jim Rogers jrogers at cantatapharm.com
Fri Dec 6 15:45:06 CET 2002


Hello,

Has anyone out there encountered a problem like this:

xyplot(Plasma ~ Serum | Analyte,
       data = sp.df,
       aspect = 1,
       layout = c(1, 1, 200),
       scales = list(relation = "free")
       )

Gives the error: 

Error in pretty(x[is.finite(x)], ...) : x must be numeric

On the other hand, this works (but I don't want the default of having
everything on the same page):

xyplot(Plasma ~ Serum | Analyte,
       data = sp.df,
       aspect = 1,
       # layout = c(1, 1, 200),
       scales = list(relation = "free")
       )

and this works (but I don't want the default of using the same axes
limits for all plots):

xyplot(Plasma ~ Serum | Analyte,
       data = sp.df,
       aspect = 1,
       layout = c(1, 1, 200)
       # scales = list(relation = "free")
       )

For my present situation, I can work around this by creating multiple
plots in a loop, but I am wondering if I am missing something about the
way multi-page plots work. 

Thanks for any help. 

platform i386-pc-mingw32
arch     i386           
os       mingw32        
system   i386, mingw32  
status                  
major    1              
minor    6.1            
year     2002           
month    11             
day      01             
language R   

Jim Rogers

James A. Rogers, Ph.D. <rogers at cantatapharm.com>
Statistical Scientist
Cantata Pharmaceuticals
3-G Gill St
Woburn, MA  01801
617.225.9009
Fax 617.225.9010




More information about the R-help mailing list