Re: [R] Need help ploting time series(2)

2007-10-15 Thread jim holtman
Here are a couple of ways that you can do it: x <- expand.grid(YEAR=c(2003,2004), MONTH=1:12, DAY=1, STATE=LETTERS[1:4]) x$SALES <- runif(nrow(x), 10, 100) # add date for plotting x$date <- ISOdate(x$YEAR, x$MONTH, x$DAY) # sort into date order for plotting x <- x[order(x$date),] # you can use lat

[R] Need help ploting time series(2)

2007-10-15 Thread gsmkb86
hi: Yesterday I post a message about hoy to plot a time series, but someone told me to post more information about the file so here it is: the file was read using read.table and the name is list. When I use str(list) it tells the following variables: YEAR int: 2003,2003,20032004 MONTH int:1,1,