[R] secondary axis in a plot

Karl Ove Hufthammer Karl.Hufthammer at math.uib.no
Thu May 22 14:32:55 CEST 2008


MarySR:

> I want to do a plot of two series, but adding a secondary axis in the
> rigth side to take into account the different scales of the two series.
> Anyone can tell me haw can I do that in R?

I would *strongly* advice you to read this article on dual-scaled axes
before proceeding:

http://www.perceptualedge.com/articles/visual_business_intelligence/dual-scaled_axes.pdf

Anyway, your question has been answered several times in the past.
Try the search term "two axes" at "http://www.rseek.org/".

-- 
Karl Ove Hufthammer



More information about the R-help mailing list