[R] Polygon shade
bgnumis bgnum
bgnumis at gmail.com
Tue Oct 6 15:20:10 CEST 2015
Hi All,
I want to shade the area below "f" variable and it doesn´t draw:
plot(z$Dateh[nn:length(z$Dateh)],f,type="l",col="black", xlab="Time",
ylab="Line")
grid()
polygon(c(1, 1:st, st),c(0, f, 0), col = "blue")
st is the length of f.
But if I plot
plot(f,type="l",col="black", xlab="Time", ylab="Correlation")
grid()
polygon(c(1, 1:st, st),c(0, f, 0), col = "blue")
But the axis doesn´t refect the date labels.
¿What should I do in the first code to achive it draws the blue?
¿If not? How can I ommit the axis in the scond code and to add the
z$Dateh[nn:length(z$Dateh)?
Hope someone can help me.
[[alternative HTML version deleted]]
More information about the R-help
mailing list