[R] lattice question--- different ylim

2003-09-04 Thread Mahbub Latif
Hi there,

I have four panels in a lattice bwplot. I want to have
two different ylim for the panels, for example panels
[1,1] and [1,2] with ylim=c(0,200) and panels [2,1]
and [2,2] with ylim=c(0,100). 

Thanks for help in advance.

Mahbub.

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


Re: [R] lattice question--- different ylim

2003-09-04 Thread Deepayan Sarkar

For example (variations are possible), 

y - 100 * runif(400)
a - gl(4, 100)
x - gl(3, 7, 400)

library(lattice)
bwplot(y ~ x | a, scales = list(y = free), 
   ylim = list(c(0, 100), c(0, 200), c(0, 100), c(0, 200)))

(Assuming you have up to date versions of R and lattice).

On Thursday 04 September 2003 09:26 am, Mahbub Latif wrote:
 Hi there,

 I have four panels in a lattice bwplot. I want to have
 two different ylim for the panels, for example panels
 [1,1] and [1,2] with ylim=c(0,200) and panels [2,1]
 and [2,2] with ylim=c(0,100).

 Thanks for help in advance.

 Mahbub.

 __
 [EMAIL PROTECTED] mailing list
 https://www.stat.math.ethz.ch/mailman/listinfo/r-help

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help