Skip to content
Prev 148762 / 398498 Next

Odp: FW: RES: bug in axis.Date? was (Re: newbie needs help plottingtimeseries)

Thanks, Petr, for all your help!

I haven't called chron package explicitely, so I don't think it's from chron package. Although I have to 
admit that I don't know. 
I think I'm starting to understand the problem: When I start my plot using
 
plot(x, y, axes=FALSE, ylim=c(405,410),col="red",...)

then R starts drawing the plot and spreads out the x-axis according to the dates in my data file. But 
then I come along and tell R to draw an x-axis that's longer and basically won't fit onto the plotting 
region, and R doesn't like that, to use layman's terms. I haven't tried yet, but telling R right from the 
beginning how big the plot should be (using xlim, as you suggested) should probably do the trick. 
And it would also mean that half a year from now, when I want to do another "shift" by 6 months, I 
can simply do a "search-and-replace" in my code file , and everything should work. (Hopefully!)

Thanks again!

Kathi


On Wed, 2 Jul 2008 15:15:27 +0200, Petr PIKAL wrote
--
DropNet AG - Das Unternehmen fuer Ihren Internet-Auftritt!