Skip to content
Prev 58335 / 398502 Next

plot time series / dates (basic)

On Mon, 1 Nov 2004, bogdan romocea wrote:

            
So why use as.POSIXct for a date, rather than as.Date?
Just don't convert them to that format.  You set up
which is not a dates object.  If you use standard R indexing, it will
work. If you throw the class away, it will not.  Try

       dat <- date[(j-1)*points+1):(j*points)]

etc (no for loop required).

If you want a different format, see ?axis.Date
There's a whole chapter on this in `An Introduction to R': have you read 
it?
That's almost an FAQ.  Use deparse(substitute(vara))