[R] color of plot axes involving POSIX types

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Mon Dec 9 12:20:04 CET 2002


plot.POSIXct doesn't have an `axes=FALSE' argument, but you can use
xaxt="n".  However, with your settings and my example I get a yellow
axis, so I can't reproduce this.


On Sun, 8 Dec 2002, Richard Rowe wrote:

> I am attempting to plot frequency of occurrence against (calendar) time. As
> the output is to be produced as a Powerpoint picture on a dark background I
> wish to make the plot output yellow
>
>  > par(col="yellow", col.axis="yellow", col.lab="yellow", col.main="yellow")
>  > plot(t2, t1, ylim=c(0,40), main="Episynlestes run 2", ylab="frequency",
> type="h", axes=FALSE, lwd=2)
>
> where t2 is a vector of  POSIX type and t1 is the associated frequency.
> This works *except* that the x axis is printed ... and in black
>
>  > axis.POSIXct(1, t2, col="yellow")
>
> makes the x axis yellow by overwriting, so I can get what I want
> (fortunately I didn't post this earlier when I was tied in a knot), but it
> doesn't seem elegant.
>
> Any hints?
>
> Thanks,
>
> Richard
>
>
> Richard Rowe
> Senior Lecturer
> Department of Zoology and Tropical Ecology, James Cook University
> Townsville, Queensland 4811, Australia
> fax (61)7 47 25 1570
> phone (61)7 47 81 4851
> e-mail: Richard.Rowe at jcu.edu.au
> http://www.jcu.edu.au/school/tbiol/zoology/homepage.html
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> http://www.stat.math.ethz.ch/mailman/listinfo/r-help
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list