[R] Separate y-limits in xYplot panels II
jpoulsen at zoo.ufl.edu
Tue Apr 8 21:06:06 CEST 2008
I have been trying to use xYplot in Hmisc to graph plots, allowing each
panel to have a y-axis dependent on the data in the panel.
Following the advice from the R-Help list, message: [R] separate
y-limits in xYplot panels on Wed, 30 May 2007 08:12:06 -0700 (PDT), I
However, it does not seem to work. Please see below code, where the
scale of the y-axis of the 2 panels stays the same despite the scales
Does anyone know how to get around this?
dat=as.data.frame(cbind(ycomb, y.up, y.low, grp, rep(x1,2)))
with(dat, xYplot(Cbind(ycomb, y.up, y.low)~x1|factor(grp),
data=dat,type="l", method="bands", scales=list(y=list(relation="free"),
More information about the R-help