Displaying 2 results from an estimated 2 matches for "pallen".
Did you mean:
allen
2011 Mar 17
4
Help with plotting a line that is multicoloured based on levels of a factor
...quot;green", type="l")
lines(data$date[data$levels=="low"], data$flow[data$levels=="low"],
col="blue", type="l")
But the line fills in data gaps, so this doesn't work.
Any help would be much appreciated! Thank you.
-Pam Allen
pallen at hatfieldgroup.com
2011 Mar 24
2
Help with creating a ts (time series) object with daily sampling values
Hi All,
I have a data set of daily measurements of river flow. I would like to
create a "ts" object from this data.
Here's a sample data set:
date <- as.Date(c(1:300), format="%Y")
year=as.numeric(format(date, format = "%Y"))
month=as.numeric(format(date, format = "%m"))
julianday=as.numeric(format(date, format = "%j"))