powered by
## S3 method for class 'xts': plot(x, y = NULL, type = "l", auto.grid = TRUE, major.ticks = "auto", minor.ticks = TRUE, bar.col = "grey", candle.col = "white", ann = TRUE, axes = TRUE, ...)
xts
type='candles'
type='bars'
Better financial plots can be found in the quantmod package, though these are generally incompatible with standard R graphics tools.
data(sample_matrix) plot(sample_matrix) plot(as.xts(sample_matrix)) plot(as.xts(sample_matrix), type='candles')
Run the code above in your browser using DataLab