Closed xinbinhuang closed 6 years ago
The issue is that since you loaded forecast
package, you'll be using autoplot
provided by forecast
instead of by ggfortify
. If you remove that library(forecast)
, you'll see the alpha level change.
If you really have to import forecast
, you can force to use ggfortify
's autoplot()
using ggfortify:::autoplot.ts
. Though it's not recommended but should be a workaround for you.
Note that you'll probably want facets = FALSE
, e.g. ts(cbind(p,q)) %>% autoplot(alpha = 0.5, facets = FALSE)
if you want to plot the lines in single axis. You can find the tutorial here.
@terrytangyuan Thank you very much! The information is really helpful. I use ggfortify:::autoplot.ts
to solve my problem, because I still need to keep the forecast
package
@xinbinhuang Great. Though :::
means it's an internal function but it should be stable enough to use.
Hi ggfortify developer,
I found it unable to set the alpha level for multivariate time-series. Here is the code.
Here I just make two series, but the number of series I am dealing with is 100. So the plot looks really bad. Is there any workaround to change the alpha level?
Thank your very much!