Skip to content
Prev 280890 / 398503 Next

need help with a time series plotting problem

vibhava wrote
Hello,

If I'm understanding it well, this is a time series problem, use time series
functions.

You can use 'stats::ts' or, what seems to be better for your problem,
package zoo.
Here is an example.

library(zoo)

flow <- read.delim( ... etc ...


flow$Date <- as.Date(flow$Date, format="%m/%d/%Y")
head(flow$Date)  # see if it worked

zflow <- zoo(flow[,-1], order.by=flow$Date)  # make the time series

plot(zflow)                      # all 8 series, ugly axes
plot(zflow$USGS700)  # just the first series, ugly axes

If this helps, then make it pretty with Jim's ideas.
See also the 'plot.zoo' help page, it has several examples with fancy
labels.

Rui Barradas


--
View this message in context: http://r.789695.n4.nabble.com/need-help-with-a-time-series-plotting-problem-tp4230672p4233688.html
Sent from the R help mailing list archive at Nabble.com.