[英]R Programming- Used customising package ggfortifty on plot
Hi I created a time series in R and used GGfortify to make it look pretty. 嗨我在R中创建了一个时间序列,并使用GGfortify使它看起来很漂亮。
It uses a function called autoplot for which I wish to change the axis and title names, but I am unsure how to. 它使用一个名为autoplot的函数,我希望更改轴和标题名称,但我不确定如何。
salesARMAplot <-arima(sales, order = c(1,1,1))
FinalForecast <-forecast(sales, x=banter, y= banter,ARMAplot,h=8)
autoplot(FinalForecast)
The image attached shows the plot. 附图显示了该图。
Try using the following parameters inside the autoplot function 尝试在autoplot函数中使用以下参数
xlab = "x_label",
main = "title",
ylab = "y_label"
您可以像普通的ggplot对象一样添加它:
autoplot(FinalForecast) + ggtitle("Forecast Title") + labs(x = "New Time")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.