为了制作一个带有图的时间序列应用程序进行分析,我想利用预测软件包的自动绘图功能,提供stl分解。
但是,似乎没有功能,可以调整x和y轴的文本大小。基plot()参数没有任何效果:
library(forecast)
co2 %>%
decompose() %>%
autoplot(
cex.lab = 11,
cex.axis = 11,
cex.main = 13,
cex.sub = 13)发布于 2022-03-18 11:28:30
autoplot来自ggplot2。因此,您需要使用ggplot2函数来调整来自autoplot的项。
例如,调整标题大小:
co2 %>%
decompose() %>%
autoplot() +
theme(title = element_text(size = 13)
)https://stackoverflow.com/questions/71525931
复制相似问题