[R] problem with hist() for 'times' objects from 'chron' package
Bojanowski, M.J. (Michal)
M.J.Bojanowski at fss.uu.nl
Fri Jun 23 18:27:45 CEST 2006
Hello dear useRs and wizaRds,
I encountered the following problem using the hist() method for the
from package 'chron'. You should be able to recreate it using the code:
# pasted from chron help file (?chron)
dts <- dates(c("02/27/92", "02/27/92", "01/14/92", "02/28/92",
hist(dts) # which yields:
# Error in axis(side, at, labels, tick, line, pos, outer, font, lty,
# 'label' is supplied and not 'at'
# In addition: Warning messages:
# 1: "histo" is not a graphical parameter in: plot.window(xlim, ylim,
log, asp, ...)
# 2: "histo" is not a graphical parameter in: title(main, sub, xlab,
ylab, line, outer, ...)
The plot is produced, but there are no axes.
As far as it goes for the warnings I looked in the sources and I think
they are caused
by hist.times() in package 'chron' which is calling the barplot() with
whereas neither barplot(), plot.window(), title() nor axis() seem to
accept this argument.
Am I doing something wrong or there is something not right with the
PS: I'm using R 2.3.1 on Windows XP and:
Version 2.3.1 (2006-06-01)
attached base packages:
 "methods" "stats" "graphics" "grDevices" "utils"
other attached packages:
Author: S original by David James <dj at research.bell-labs.com>, R
port by Kurt Hornik <Kurt.Hornik at R-project.org>.
Maintainer: Kurt Hornik <Kurt.Hornik at R-project.org>
Description: Chronological objects which can handle dates and times
Title: Chronological objects which can handle dates and times
Depends: R (>= 1.6.0)
Packaged: Fri May 12 09:31:49 2006; hornik
Built: R 2.3.0; i386-pc-mingw32; 2006-05-13 12:21:51; windows
ICS / Utrecht University
Heidelberglaan 2; 3584 CS Utrecht
m.j.bojanowski at fss.uu.nl
More information about the R-help