Skip to content
Prev 13311 / 15274 Next

RFC: plot.xts

Gei,

Setting a log scale for the vertical axis is not currently implemented for
plotting the main panel in the call to plot.xts. I opened an issue at
https://github.com/joshuaulrich/xts/issues/103 to add support for a log
scale.

If you would like to add a panel with the log transformation of the data,
you can do the following
library(xts)
data(sample_matrix)
dat.xts <- as.xts(sample_matrix[,"Close"])
plot(dat.xts)
addPanel(log, main = 'log transformation')

Ross
On Tue, Jun 2, 2015 at 4:07 AM, Gei Lin <gmonaie at gmail.com> wrote: