[R] bug plotting dates?

Philipp Pagel p.pagel at gsf.de
Sat Jul 26 11:04:35 CEST 2003


	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

-- 
Dr. Philipp Pagel                                Tel.  +49-89-3187-3675
Institute for Bioinformatics / MIPS              Fax.  +49-89-3187-3585
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1
85764 Neuherberg, Germany




More information about the R-help mailing list