search for: add_horizontalline

Displaying 1 result from an estimated 1 matches for "add_horizontalline".

2012 Feb 11
1
object not found - Can not figure out why I get this error: Error in NROW(yCoordinatesOfLines) : object 'low' not found
...ppen. This is my first question to this list. I trying to add some functions to quantmod that would enable me to draw arbitrary lines and text and make sure they are redrawn. I have created following function: require(quantmod) # Add horizontal line to graph produced by quantmod::chart_Series() add_HorizontalLine<-function(yCoordinatesOfLines, on=1, ...) { lenv <- new.env() lenv$add_horizontalline <- function(x, yCoordinatesOfLines, ...) { xdata <- x$Env$xdata xsubset <- x$Env$xsubset x0coords <- rep(1, NROW(yCoordinatesOfLines)) x1coords <- rep(...