Please help. I'm getting an error in the plot statement. I've been told
it's due to plot.xts. and I should ask the package maintainer to send a
patch. My code is as follows:

require(quantmod)
require(rdatamarket)
#rm(list=ls())
g <-dmlist("
http://datamarket.com/data/set/1jz5/st-louis-financial-stress-index#display=line&ds=1jz5
")
g$Date <-as.Date(g[,1], "%Y-%m-%d")
h <-as.xts(g, order.by=g[,1])
j <-h[,2]
s <-getSymbols('^GSPC', from="1990-01-01", to=Sys.Date())
s <-to.weekly(GSPC)
s <-s[,6]
x <-na.omit(merge(s,j)) ; names(x) <-c("sp","stress")
print(head(x))
par(mfrow=c(2,1))
plot(x[,1]/400, ylim=c(-1,5), col="blue")
lines(x[,2], col="red")
ccf(drop(x[,1]), drop(x[,2]))


The error is :

plot(x[,1]/400, ylim=c(-1,5), col="blue")
Error in axis(1, at = xycoords$x, labels = FALSE, col = "#BBBBBB", ...) :
  formal argument "col" matched by multiple actual arguments

I tried traceback() but I think it's just telling me there is a problem
with argument col

traceback()

3: axis(1, at = xycoords$x, labels = FALSE, col = "#BBBBBB", ...)
2: plot.xts(x[, 1]/400, ylim = c(-1, 5), col = "blue")
1: plot(x[, 1]/400, ylim = c(-1, 5), col = "blue")

This code worked in the past without problem. But I upgraded my packages
and rstudio to the latest version and now I have this error. I tried
install.packages("xts"). That went fine but didn't fix the error.

What can I do to resolve this ?

	[[alternative HTML version deleted]]

