Open ethanbsmith opened 4 years ago
so i looked into this a bit today. want to log some notes here for reference:
Findings:
chart_Series
takes a pars
parameter, but only uses cex
and mar
from that. the call will fail if either of the values are not supplied and and additional values in pars
are ignored. These 2 values are set as explicit slots on a replot
object for use downstream. plot.xts
function signature takes ...
and uses the add.par.from.dots()
function to assemble what i think is an expression that then gets passed along to eventually executed at the right point to set the parschart_Series
function signature takes ...
, but never uses itso, there are a few things that need to be sorted out:
chart_Series
? through ...
to make it like plot.xts
, or through the explicit existing pars
argument?log
xts
code can be leveraged to assemble an expression that can be placed into the replot
object instead of explicit slots for cex
and mar
. Or b. possibly placing the whole par including user supplied values into the replot
while this could be handled through a pars
parameter, the same could have been done for the original chartSeries
. i think adding a log.scale
parameter to the chart_Series
function signature, that gets passed through to plot.xts
is the better design.
dependent on https://github.com/joshuaulrich/xts/issues/103
Description
Neither of these approaches produce a log scaled y axis
This problem was also identified at : https://stackoverflow.com/questions/25261388/does-chart-series-work-with-logarithmic-axis
Expected behavior
some parameter that will allow at least the y axis to be log scaled. ideally this would also work TA panels
Session Info