s-news
[Top] [All Lists]

trellis graphics

To: s-news@lists.biostat.wustl.edu
Subject: trellis graphics
From: Greg Tarpinian <sasprog474@yahoo.com>
Date: Thu, 22 Jul 2004 16:44:12 -0700 (PDT)
Platform:  WinXP, Splus 6.2 Professional for 
Windows Network

I am using the following code to generate some
xy-plots
for a presentation that I need to give:

trellis.device(graphsheet,                      
file="C:/..blah../Graph##.jpg", format="JPEG")

tmp.strip.bg <- trellis.par.get("strip.background")
tmp.plot.sym <- trellis.par.get("plot.symbol")
tmp.add.line <- trellis.par.get("add.line")
tmp.strip.shing <- trellis.par.get("strip.shingle")
tmp.add.text <- trellis.par.get("add.text")
tmp.main.label <- trellis.par.get("main.label")

tmp.strip.bg$col[1] <- 13
tmp.plot.sym$pch <- 6
tmp.plot.sym$cex <- 1.2 
tmp.add.line$lwd <- 4   
tmp.strip.shing$col <- 13
tmp.main.label$cex <- 1.2
tmp.add.text$cex <- 1.2 

trellis.par.set("strip.background", tmp.strip.bg)
trellis.par.set("plot.symbol",tmp.plot.sym)
trellis.par.set("add.line",tmp.add.line)
trellis.par.set("strip.shingle",tmp.strip.shing)
trellis.par.set("main.label",tmp.main.label)
trellis.par.set("add.text",tmp.add.text)

xyplot(Y ~ X | Z, data = PlotData.frame,
       xlab = "...", ylab = "...",
       panel = function(x, y)
       {
         panel.xyplot(x,y)
         panel.loess(x,y,span = .75)
         panel.grid(h=-1, v=-1, lwd = 1)
       },
       between = list(x = .75, y = .75),
       main = "...",
       strip = function(...) 
       {
         strip.default(...,
            par.strip.text = list(cex=1.1) )
       }
       )

Here are my questions:

(1) The outputted .jpg files are nice, but have lower
resolution than what I need; is there a way to
increase
the resolution so that the graphs look nice when 
projected on a screen?

(2) The strip.default(...) option does indeed cause
the fontsize of the strip labels to increase, but
the strip heights are not changing to accommodate
them.
Is there a way to cause the strips to increase in 
height?

(3) I have searched high and low (Splus manuals,
online
documentation, Splus listserv records) and have not
found a way to get Splus to tell me what my options
are with respect to the "col = ... " option in trellis
graphics.  Does someone know how to do this?


Thank you for your help,

       Greg





        
                
__________________________________
Do you Yahoo!?
Vote for the stars of Yahoo!'s next ad campaign!
http://advision.webevents.yahoo.com/yahoo/votelifeengine/

<Prev in Thread] Current Thread [Next in Thread>