Hello,
I create a plot using autoplot.
The idea is to hide the legend frame.
The autoplot function makes them useless.
Here is the code:
library(seasonal)
library(tsibble)
set.seed(123)
datos <- ts(rnorm(480),start =1970,frequency = 12 )
ajuste <- seas(datos,x11="")
series(ajuste, series = c("d10","d11","d12","d13")) %>%
as_tsibble() %>%
mutate(
key=recode(key,
d10="Ajustada",
d11="Regular",
d12="Tendencia",
d13="Irregular")) %>%
autoplot() +
labs(x="Tiempo",y="Valores")+
facet_wrap(~key)+
theme_light()
I tried using
theme_light(legend.position="")
But It generated the same plot.
Maybe It is an autoplot related issue?
Thanks for your time and interest.
Have a nice day.