Skip to content
Prev 69683 / 398525 Next

Problem with data frame when using xYplot?

On Friday 13 May 2005 10:36 am, Sander Oom wrote:
No, I meant exactly what I wrote, and my comment followed this piece of code 
(which you have deleted from your reply):

---------
tmp$PosNum <- unclass(tmp$Position)
tmp
(labs <- unique(tmp$Position))
# plot factor levels in seperate panels
xYplot(Cbind(Sodium,Lower,Upper) ~ PosNum|AltGeo, data=tmp, nx=FALSE,
   xlim=c(0.5,2.5),
   ylim=c(min(tmp$Lower)-1,max(tmp$Upper)+1),
   scales = list(x = list(at=seq(1, 2, by=1), labels = labs)),
   xlab="Position", ylab="Sodium"
   )
----------
By reading the manual, of course :-)

Deepayan