[R] multiple secondary axes

Tony Breyal tony.breyal at googlemail.com
Wed Jan 14 12:56:25 CET 2009


Hi Kirsten,

If i understood correctly, i think you probably want something like
the following:

## R Start...
library(plotrix)
x1<-1:10; y1<-1:10; x2<-1:15; y2<-15:1
twoord.plot(x1, y1, x2, y2,
		xlab="Sequence",
  		ylab="Ascending values",
		rylab="Descending values",
	  	main="Two Y-Axis example")
### R end.

Hope that helps a little,
Tony Breyal


On 14 Jan, 09:29, "Kirsten Thonicke" <Kirsten.Thoni... at pik-potsdam.de>
wrote:
> Dear R experts,
>     I want to plot a line chart with another secondary axis placed right to
> the standard secondary axis which one can access with the axis command, so
> that the data lines are seen in the same plot. Is there any way to do this
> in R?
>
> Many thanks,
> Kirsten.
>
> ______________________________________________
> R-h... at r-project.org mailing listhttps://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guidehttp://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list