[R] lattice, different plotting symbols

Matt Pocernich pocernic at rap.ucar.edu
Thu Mar 4 21:28:15 CET 2004


Hi,

I am trying to plot different variables from a data.frame using lattice's
xyplot using code like that below.  How do I specify a symbol and color
for the variable 'prob' and different one's for 'll.prob'?

Thanks,  Matt

xyplot( prob +  ll.prob ~ time.eff |stat.id + time.out ,data = OUT,
       allow.multiple = TRUE,
       layout = c(6,3), as.table = TRUE ,

       panel = function(x,y){panel.abline(h = 0)
       panel.xyplot(x,y)},
       strip = TRUE,
       )

Matt Pocernich
NCAR - Research Applications Program
303-497-8312




More information about the R-help mailing list