[R] Two lines, two scales, one graph

Felix Andrews felix at nfrac.org
Tue Aug 25 01:01:52 CEST 2009


2009/8/25 David Winsemius <dwinsemius at comcast.net>
>
> On Aug 24, 2009, at 11:00 AM, Rick wrote:
>
>> I would like to plot two variables against the same abscissa values. They
>> have different scales. I've found how to make a second axis on the right
>> for labeling, but not how to plot two lines at different scales.
>
> After using R site search I would ask: have you looked at as.layer in {latticeExtra}?

Don't use as.layer().  For this purpose it has been replaced by
doubleYScale(), also in the latticeExtra package.


--
Felix Andrews / 安福立
Postdoctoral Fellow
Integrated Catchment Assessment and Management (iCAM) Centre
Fenner School of Environment and Society [Bldg 48a]
The Australian National University
Canberra ACT 0200 Australia
M: +61 410 400 963
T: + 61 2 6125 1670
E: felix.andrews at anu.edu.au
CRICOS Provider No. 00120C
--
http://www.neurofractal.org/felix/




More information about the R-help mailing list