[R] How to Break Axis in Lattice Plot

Larry Ma larry_ma at verizon.net
Wed Dec 10 05:04:34 CET 2008


Dear All,

I have searched the following problem in the R help achives, and there did 
not seem to be solutio for it.

The problem is how to break the axis in the xyplot (lattice plot).  I read 
the posts using the package plotrix, buy it doesn't work with the xyplot, 
which is lattice based.

A simple example is attached below:

xyplot(c(1:10,100)~c(1:10,100))

What I would like to do is break the axis from 10 to 100 so that the scale 
from 1:10 still intact, but I can show the data at 100 as well.  It has to 
be based on xyplot as I have conditions in my data.


Thanks,
Larry



More information about the R-help mailing list