Re: [R] 3 Y axis possible?

From: Jun Shen <jun.shen.ut_at_gmail.com>
Date: Thu, 26 May 2011 15:22:14 -0500

Thanks a bunch, Walmes.

One more concern, the new Y axes added do not extend all the way down to cross with x axis. Is there anyway to make them look like the very first Y axis on the left?

Jun

On Thu, May 26, 2011 at 1:24 PM, Walmes Zeviani <walmeszeviani_at_gmail.com>wrote:

> You can use mtext()
>
> par(mar=c(5.1,4.1,4.1,5.1))
> plot(x$Time, x$y1, type='l', bty = 'c', col = 'red')
> par(new = TRUE)
> plot(x$Time, x$y2, type = 'l', axes = FALSE, xlab = '', ylab = '', col=
> 'green')
> axis(4, col='green')
> mtext(side=4, text="label green", line=2)
> par(new = TRUE)
> plot(x$Time, x$y3, type = 'l', axes = FALSE, xlab = '', ylab = '', col =
> 'blue')
> axis(4, col='blue', line = -4)
> mtext(side=4, text="label green", line=-2)
>
> Walmes.
>
> ==========================================================================
> Walmes Marques Zeviani
> LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W)
> Departamento de Estatística - Universidade Federal do Paraná
> fone: (+55) 41 3361 3573
> VoIP: (3361 3600) 1053 1173
> e-mail: walmes_at_ufpr.br
> twitter: @walmeszeviani
> homepage: http://www.leg.ufpr.br/~walmes
> linux user number: 531218
> ==========================================================================
>
> [[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.
>
>

        [[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. Received on Thu 26 May 2011 - 20:23:58 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 26 May 2011 - 21:00:10 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive