Re: [R] From data frame to time series matrix and plot [RESOLVED]

2014-03-04 Thread Rich Shepard
On Mon, 3 Mar 2014, Rich Shepard wrote: I'm missing something simple here so a pointer is needed. Figured it out: I created two ts() objects, one for each parameter, then plotted them using cbind. Just need to tweak how the dates display on the x axis, but that should be doable. Rich

Re: [R] From data frame to time series matrix and plot [UPDATE]

2014-03-04 Thread Rich Shepard
On Tue, 4 Mar 2014, Rich Shepard wrote: Would xyplot() be a better function for these data? Here's the syntax for the xyplot() command; the output is attached. What have I done incorrectly here? xyplot(col.riv.ts, data = NULL, screens = 1, cut = FALSE, auto.key = TRUE) Data: structure(

Re: [R] From data frame to time series matrix and plot [UPDATE]

2014-03-04 Thread Rich Shepard
On Mon, 3 Mar 2014, Rich Shepard wrote: I would like to plot (separately) time series for the 'disch' and 'tempMean' columns but have not had success in passing the correct syntax to the plot() function and having the x-axis labels as human-readable dates rather than the epoch time (which is wh

[R] From data frame to time series matrix and plot

2014-03-03 Thread Rich Shepard
I'm missing something simple here so a pointer is needed. The base data is a data frame, col.riv. That was converted to a matrix: col.riv.mat <- data.matrix(col.riv) then to a timeSeries object: col.riv.ts <- ts(col.riv.mat) class(col.riv.ts) [1] "mts""ts" "matrix" I would lik