r - plotting xts objects - passsing values for lwd and col parameters creating errors -
whenever try plot xts object values passed parameter col , lwd, returns error saying parameter col (and lwd if comment out col) matched multiple values. here function looks -
data xts object
plot(data, lwd=2, col="red") installing xtsextra seems solve problem, don't understand why.
xts:::plot.xts specifies several parameters when constructing axes (col, lwd, las, , mgp), passes ... axis call. example:
axis(1, @ = xycoords$x, labels = false, col = "#bbbbbb", ...) col specified, if specify also, gets passed axis via ... , there 2 col arguments specified axis call.
this isn't problem xtsextra:::plot.xts because parameters removed ... before ... passed axis call.
Comments
Post a Comment