[R] Two lines, two scales, one graph

David Winsemius dwinsemius at comcast.net
Mon Aug 24 22:13:57 CEST 2009

On Aug 24, 2009, at 11:00 AM, Rick wrote:

> First of all, thanks to everyone who answers these questions - it's
> most helpful.
> I'm new to R and despite searching have not found an example of what I
> want to do (there are some good beginner's guides and a lot of complex
> plots, but  I haven't found this).
> 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  

David Winsemius, MD
Heritage Laboratories
West Hartford, CT

More information about the R-help mailing list