[R] monthplot () - axis change color

Gabor Grothendieck ggrothendieck at gmail.com
Fri Nov 16 14:37:54 CET 2007


Try this:

monthplot(AirPassengers+500, ylim=c(min(AirPassengers),
max(AirPassengers+500)), ylab="")

par(new=T)

monthplot(AirPassengers, col="blue", ylim=c(min(AirPassengers),
max(AirPassengers+500)), axes = FALSE)



On Nov 16, 2007 8:30 AM, Nuno Prista <nmprista at fc.ul.pt> wrote:
> Hi,
>
>
>
> When I run this code a part of my x-axis and y-axis changes color. Can
> somebody tell me what is wrong? Also, is there a way to control the color of
> the average lines?
>
>
>
> monthplot(AirPassengers+500, ylim=c(min(AirPassengers),
> max(AirPassengers+500)), ylab="")
>
> par(new=T)
>
> monthplot(AirPassengers, col="blue", ylim=c(min(AirPassengers),
> max(AirPassengers+500)), ylab="")
>
>
>
> Greetings from Norfolk,
>
>
>
> Nuno Prista
>
>
>
> ______________________________________________
>
> Instituto de Oceanografia - FCUL, Portugal
>
> Center for Quantitative Fisheries Ecology - ODU, USA
>
>
>
>
>        [[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.
>



More information about the R-help mailing list