[R] bug plotting dates?

Prof Brian Ripley ripley at stats.ox.ac.uk
Sat Jul 26 11:10:49 CEST 2003


It's an infelicity already fixed in R-patched (the first) and R-devel 
(both).

On Sat, 26 Jul 2003, Philipp Pagel wrote:

> 
> 	Hello R-experts!
> 
> I am using R Version 1.7.1  (2003-06-16) on a Debian Linux box and I
> have discovered an odd result when plotting data involving dates. Please
> try this minimal example:
> 
> a = seq(ISOdate(2000,1,1), ISOdate(2001,1,1), "months")
> b = 1:13
> plot(a,b, col="red")
> 
> What I get is a plot that looks as expected except the x-axis is mostly
> red. Can anyone reproduce this behaviour? I have tried the same thing on
> R 1.6.0 on a machine in the institute and everything looked fine there
> (i.e. axis is black). 
> 
> Also, if I set the ylim in the plot command:
> 
> plot(a,b, col="red", ylim=c(0,20))
> 
> R gives me a warning 'parameter "ylim" couldn't be set in high-level
> plot() function' but sets the limit as requested, anyway.

> Any ideas what I'm doing wrong? Is this a bug?
> 
> cu
> 	Philipp
> 
> 

-- 
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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list