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 what I assume is in the date class).

  Significant progress has been made, but I'm still not using the correct
syntax.

  1) I modified the original data frame to 3 columns: date, disch, and temp.
  2) Using ts() I converted the data frame to a ts object.
  3) After reading ?plot.ts and ?ts.plot I determined that the latter is
appropriate for a multivariate time series on a single set of axes:

plot.ts(col.riv.ts, plot.type = "single", xylabels = c("Date","Amount"))
Warning messages:
1: In plot.window(xlim, ylim, log, ...) :
  "xylabels" is not a graphical parameter
2: In title(main = main, xlab = xlab, ylab = ylab, ...) :
  "xylabels" is not a graphical parameter
3: In axis(1, ...) : "xylabels" is not a graphical parameter
4: In axis(2, ...) : "xylabels" is not a graphical parameter
5: In box(...) : "xylabels" is not a graphical parameter

  But, not only have I not correctly specified xylabels, but the dates are
not correctly presented (that is, as dates rather than numbers), and there
are other options which I need to better understand.

  Would xyplot() be a better function for these data?

Rich

Attachment: col.riv.ts-1.pdf
Description: Adobe PDF document

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to