Displaying 1 result from an estimated 1 matches for "indexsp".
Did you mean:
indexs
2008 Feb 12
2
shaded area graph and extra plot
...nd
second 1996:2007)
the corresponding x's do not match.
How can this be sorted out?
Thanks in advance
#############################################
plot.new()
plot.window(xlim=c(1993,2008), xaxs="i", ylim=c(0,400), yaxs="i")
x=1994:2007
xx = c(1994, x, 2007)
yy1 = c(0, indexSp[,"Xhat5Sp"]+indexSp[,"seA"], 0 )
yy2 = c(0, indexSp[,"Xhat5Sp"]-indexSp[,"seA"], 0 )
polygon(xx, yy1, col="grey", lty=0)
polygon(xx, yy2, col="white", lty=0)
lines(x, indexSp[,"Xhat5Sp"], type="l")
axis(1)
axis(2)
pa...