[R] 'col'-parameter in 'hist.POSIXt'

Sebastian Meyer Sebastian.Wastl.Meyer at campus.lmu.de
Sat May 6 20:17:03 CEST 2006


Hi guys.

The 'col'-parameter in the 'hist'-method for the classes 'POSIXt' and
'date' does not perform as it does in the default 'hist'-method.
Unfortunately, it does not only change the filling color of the boxes,
but also the color of the axislines.
[Using 'graphics'-package version 2.2.0]

Examples:
	
	# with POSIXct-object
	hist(.leap.seconds, "years", freq = TRUE, col="lightgrey")
	
	# with dates
	random.dates <- as.Date("2001/1/1") + 70*runif(100)
	hist(random.dates, "weeks", format = "%d %b", col="lightgrey")


Is that a bug?

Thanks in advance.

	Wastl


---

> sessionInfo()
R version 2.2.0, 2005-10-06, x86_64-unknown-linux-gnu

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"

other attached packages:
    MASS
"7.2-20"




More information about the R-help mailing list