Displaying 1 result from an estimated 1 matches for "ticmark".
Did you mean:
tickmark
2004 Dec 14
2
plot with dates
Hi,
I am trying to understand the behaviour of the plot function.
If I have
novdate <- as.Date("2001/11/1") + (0:29)
y <- 1:30
b <- data.frame(novdate,y)
then plot(b$novdate,b$y) will produce a plot where the x-ticmarks are
given as dates (Nov 04, Nov 09 etc), but plot(b) will produce a plot
where the x-tickmars are integer values (#day since Jan 1st 1970)
In the first case plot is getting a an x-vector of class Date, and
y-vector of class integer. In the second case plot gets an object of
class data.frame (...