Georg Ehret
2008-Dec-06 20:54 UTC
[R] plotting several datasets with different scales into same plot
Dear Miss R, I wish to plot three datasets on completely different scales into one single plot. Until now I use a complicated procedure, converting the data of the second and third set into coordinates of the first plot and then adding an extra axis. Is there a way to do this more simply...? Thanking you and wishing you all an excellent Sunday! Cheers, Georg. ************************* Georg Ehret Geneva University Hospital Switzerland [[alternative HTML version deleted]]
Gabor Grothendieck
2008-Dec-06 21:09 UTC
[R] plotting several datasets with different scales into same plot
This is a commonly asked question and you can likely find many examples in the r-help archives. twoord in the plotrix package can do it. Also see example section of: ?plot.zoo in the zoo package looking at the example beginning: ## plot with left and right axes On Sat, Dec 6, 2008 at 3:54 PM, Georg Ehret <georgehret at gmail.com> wrote:> Dear Miss R, > I wish to plot three datasets on completely different scales into one > single plot. Until now I use a complicated procedure, converting the data of > the second and third set into coordinates of the first plot and then adding > an extra axis. Is there a way to do this more simply...? > Thanking you and wishing you all an excellent Sunday! > Cheers, Georg. > ************************* > Georg Ehret > Geneva University Hospital > Switzerland > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >