[R] multiple secondary axes

Patrizio Frederic frederic.patrizio at gmail.com
Wed Jan 14 11:54:54 CET 2009


hey Kirsten,
did type

?axis

it may help. eg:

plot(rnorm(100),axes=F)
axis(1)
axis(3,at=seq(0,50,length=3),labels=c("A","B","C"))
axis(2)
axis(4,at=seq(-2,2,length=10),labels=1:10)

Best,

Patrizio

2009/1/14 Kirsten Thonicke <Kirsten.Thonicke at pik-potsdam.de>:
> 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-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.
>




More information about the R-help mailing list