[R-SIG-Finance] ploting time series

fernando faiube at gmail.com
Tue Nov 26 17:13:16 CET 2013


Hi Mark,

An example would be the following code

x <- c("1jan1997", "2jan1997", "3jan1997", "4jan1997")
y <- c(-.3, 0.2, -0.2, 0.3)
date <- as.Date(x, "%d%b%Y")
plot(date,y, type="l", ylim=c(-0.32,0.32))
segments(1,-.2,4,-.2) # I want a segment from Thu through Sat at y = -0.2

Thanks in advance.

Cheers



--
View this message in context: http://r.789695.n4.nabble.com/ploting-time-series-tp4681085p4681190.html
Sent from the Rmetrics mailing list archive at Nabble.com.



More information about the R-SIG-Finance mailing list