Does chart_Series () function work with a logarithmic axis?
Is there a way to create a log y-axis with chart_Series()
? I am using experimental chart_Series()
, not method chartSeries()
in quantmod
, because it is more convenient when adding additional lines to the graph.
library(quantmod)
POWR <- getSymbols("POWR", auto.assign=FALSE)
# the following attempts did not produce logarithmic axis for y
chart_Series(POWR, log.scale=TRUE) # like in chartSeries()
chart_Series(POWR, log="y") # like in plot.default()
With a quick look at the code, it is not possible with existing methods chart_pars()
or chart_theme()
for customization.
Thanks a lot for any help.
+3
source to share
2 answers