chart_Series()与对数轴一起工作吗?

chart_Series()与对数轴一起工作吗?,r,quantmod,R,Quantmod,有没有办法用chart\u Series()生成对数y轴?我使用的是实验性的chart_Series(),而不是quantmod中的chart Series()方法,因为在绘图中添加额外的行时更方便 library(quantmod) POWR <- getSymbols("POWR", auto.assign=FALSE) # the following attempts did not produce logarithmic axis for y chart_Series(POWR,

有没有办法用
chart\u Series()
生成对数y轴?我使用的是实验性的
chart_Series()
,而不是
quantmod
中的
chart Series()
方法,因为在绘图中添加额外的行时更方便

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()
库(quantmod)

POWR如果您不需要OHLC图表,并且只需关闭即可,您可以使用“PerformanceAnalytics”包中的
chart.TimeSeries
功能,在该功能中,您可以自定义图表

chart.TimeSeries(cumprod(1+ ROC(POWR, type = "discrete")[-1,6]),ylog = TRUE,minor.ticks =FALSE)

您的额外参数不起作用,因为它们不应作为传递参数(通过
)传递到
图表\u系列中的任何函数。如果你只是想要原木蜡烛,试试看

chart\u系列(log(POWR))

我正在尝试移植一些现有的
chartSeries
代码,我一直在使用这个功能。有没有人找到一种方法来记录轴的比例?绘制基础值的日志不是可行的解决方案