[R] xYplot customizing y-axis scaling

Ben Bolker bolker at ufl.edu
Thu Jul 10 20:17:56 CEST 2008


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,
> 
> Henning    

https://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



More information about the R-help mailing list