[R] Using barplot() with zoo -- names.arg not permitted?

David Wolfskill r at catwhisker.org
Fri Mar 18 01:04:14 CET 2011


On Thu, Mar 17, 2011 at 07:52:29PM -0400, Gabor Grothendieck wrote:
> ...
> > I hope to learn what I'm misunderstanding.
> ...
> 
> This line in the code above produces an invalid object:
> class(df$time) <- "POSIXct"
> 
> It should be:
> class(df$time) <- c("POSIXct", "POSIXt")

Ah.  Thank you, Sir!  I hadn't realized that...!  (And correcting it
does make a significant difference -- in a good direction.)

> Also there is a bug in barplot.zoo that results in a bunch of warnings
> (although it still produces the correct result).  You can workaround
> it by using names= in place of names.arg= .  Doing that will avoid
> those warnings.

Cool; I think I can cope with a circumvention or two.

I appreciate the help!

Peace,
david
-- 
David H. Wolfskill				r at catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110317/10668dce/attachment.bin>


More information about the R-help mailing list