[R] lattice mutiple y scales in each panel

Ben Bolker bbolker at gmail.com
Wed Nov 10 00:22:26 CET 2010


Arunava Chakravartty <archnova <at> gmail.com> writes:

> I have a data set with two y variables (y1 and y2) and one dependent
> variable(x) and a 1 strata variable Z. It so happens that y1 and y2 have
> very different scales such that single y-axis scale does not allow the data
> to be visualized fully.

http://rwiki.sciviews.org/doku.php?id=tips:graphics-base:2yaxes

gives the answer (search for latticeExtra) ... it also gives some 
reasons why you might not
want to do this.



More information about the R-help mailing list