quantmod icon indicating copy to clipboard operation
quantmod copied to clipboard

Update zooom function to support refactored chartSeries function

Open erichung0404 opened this issue 8 years ago • 0 comments

Since S4 method used by chartSeries is deprecated, xdata and xsubset should now be obtained from .plotxtsEnv environment. plot object needs to be returned by calling return() or being executed at the end of the code otherwise it will not be printed. To print both the plot object and "done" message, print() is used. But passing the plot object created by zooom() to an object is not supported.

data("sample_matrix")
x <- sample_matrix
chartSeries(x)
x.subset <- zooom()
x.subset
# NULL

erichung0404 avatar Aug 05 '16 09:08 erichung0404