[R] xyplot with 2 y-axes

From: Nathan Weisz <Nathan.Weisz_at_uni-konstanz.de>
Date: Mon 08 Aug 2005 - 23:45:06 EST


Dear R-helpers,

I'm trying to get xyplot to plot 2 y-axes. I looked at the examples and googled around. This is how far I got so far.

test<-data.frame(a=rnorm(100),b=rnorm(100)*10,ind=rep(1:10,10),con=rep (1:10,rep(10,10)))
xyplot(a+b~con|ind,data=test,allow.multiple=T)

This however puts a+b on one axis. I'd need e.g. a as left and b as right axis.

Best wishes,
Nathan



$platform

[1] "powerpc-apple-darwin7.9.0"
$arch

[1] "powerpc"
$os

[1] "darwin7.9.0"
$system

[1] "powerpc, darwin7.9.0"
$status

[1] ""
$major

[1] "2"
$minor

[1] "1.1"
$year

[1] "2005"
$month

[1] "06"
$day

[1] "20"
$language

[1] "R"

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Aug 08 23:48:50 2005

This archive was generated by hypermail 2.1.8 : Sun 23 Oct 2005 - 15:09:37 EST