Re: [R] ylab on secondary y axis

From: Sundar Dorai-Raj <sundar.dorai-raj_at_pdf.com>
Date: Fri 10 Jun 2005 - 02:29:10 EST

See ?mtext.

--sundar

Hai Lin wrote:
> Dear R users:
>
> I am trying to add a label on axis(4) but I don't find
> any reference in R archives. Could you please help me
> out?
>
> Thanks in advance.
>
> The followings are the data set and what I have done:
>
> Sample data:
>
> time y1 y2
> 2 9 24.396
> 4 7.667 19.082
> 10 4.667 73.984
>
> Commands:
> plot(time,y1,type='l',col='red',ylab="Relative
> levels", xlab="Age of Mice",ylim=c(0,20))
> points(time,y1 col="red", pch=19)
>
> op <-par(new=T)
> plot(time,y2,type='l',
> col='green',axes=F,xlab="",ylab="", ylim=c(0,80))
> points(time,y2,col='green',pch=24)
> axis(4)
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Fri Jun 10 02:42:27 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:28 EST