Janus Larsen wrote:

Hi all,
I'm plotting a histogram of dates and would like to shade the bars, e.g.
hist(.leap.seconds,"years",col='gray',freq=T)
-but the axis color also changes, how do I prevent that?


Looks like that's not very easy with the current implementation, see the code in graphics:::hist.POSIXt
Either write your own function along the code mentioned above (and consider to contribute your improvements, or use the following (more or less ugly) workaround:


  hist(.leap.seconds, "years", col='gray', freq=TRUE, axes=FALSE)
  hist(.leap.seconds, "years", freq=TRUE, add=TRUE)

Uwe Ligges


thx in advance
Janus


        [[alternative HTML version deleted]]

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to