Dear list, using the packages Hmisc and lattice i produced some nice xYplots. However, since the data range of the conditioning variable is very big, i need to define more than one y-scale for the plot (in some panels you just see a flat line of data points very close to the x-axis), e.g. different y-axis scales for the different rows of the plot. Is there a way to do so? Thanks, Henning -- [[alternative HTML version deleted]]
Hi Henning, have a look at the scales argument in the xyplot documentation. You could try adding the following to your code: scales=list(y=list(relation="free")) Cheers, Christoph Thursday, July 10, 2008, 4:35:28 PM, you wrote:> Dear list,> using the packages Hmisc and lattice i produced some nice xYplots. However, > since the data range of the conditioning variable is very big, i need to > define more than one y-scale for the plot (in some panels you just see a > flat line of data points very close to the x-axis), e.g. different y-axis > scales for the different rows of the plot.> Is there a way to do so?> Thanks,> Henning*************************************************************** Dr. Christoph Meyer Institute of Experimental Ecology University of Ulm Albert-Einstein-Allee 11 D-89069 Ulm Germany Phone: ++49-(0)731-502-2675 Fax: ++49-(0)731-502-2683 Mobile: ++49-(0)1577-156-7049 E-mail: christoph.meyer at uni-ulm.de http://www.uni-ulm.de/index.php?id=7885
Henning Wildhagen <HWildhagen <at> gmx.de> writes:> > Dear list, > > using the packages Hmisc and lattice i produced some nice xYplots. However, > since the data range of the conditioning variable is very big, i need to > define more than one y-scale for the plot (in some panels you just see a > flat line of data points very close to the x-axis), e.g. different y-axis > scales for the different rows of the plot. > > Is there a way to do so? > > Thanks, > > Henninghttps://stat.ethz.ch/pipermail/r-help/2008-April/159034.html My student (John Poulsen) said: The answer turned out to be that I needed to specify limits for each case (e.g. ylim=list(c(0,0.005),c(0,0.2))) after setting scale to be free. Deepayan Sarkar pointed out that for some problems (error bars) what I wanted can also be done in lattice without Hmisc (although I find it a bit of a pain to code custom panel and prepanel functions) Ben Bolker