Hi, Is there a way to plot trendline with quantmod package?
There is addLines function in the package but I can't seem to figure out how to use it (not well documented): > args(addLines) function (x, h, v, on = 1, overlay = TRUE, col = "blue") NULL so arguments "h" and "v" add horizontal and vertical lines. How does argument "x" work? I would like to plot trendlines using consecutive higher highs or lower lows (for financial instruments such as stocks). Thanks. --Chang [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.