[R] Time Series - Trend Line
anaraster
rrasterr at gmail.com
Mon Feb 20 18:14:14 CET 2012
How can I had a trend line to my plot?
My data looks like this:
Date=seq(as.Date("1910/1/1"), as.Date("1920/1/1"), "day")
Values=runif(length(Date), min=-5, max=5)
dataset=data.frame(Values,as.Date(Date))
I just want to add a linear trend line to this
plot(dataset,col=rgb(1,0,0,1/8),cex=0.5,pch=19)
--
View this message in context: http://r.789695.n4.nabble.com/Time-Series-Trend-Line-tp4404582p4404582.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list