I would like to add a horizontal line to an xts object plot. I know there is the addEventLines()
function in xts
to add vertical lines, but the following does not add a line to an xts
plot:
abline(h=abc, col="green")
Is there a workaround for this other than adding a new column to the object itself before plotting?