Can anyone help me to get rid of this error, please?
Gráfico de séries temporais
g1 <- ggplot(data, aes(day)) +
- theme_bw() +
- geom_line(aes(y = obs, colour = "Obs. max. temp."), lwd = 1.15, alpha = 0.8) +
- xlab("Time") +
- ylab("GHI in Cabinda (W h/m^2)") +
- ggtitle("Global Horizontal Irradiation in Cabinda") +
- theme(axis.text.x = element_text(angle = 80, hjust = 1),
-
plot.title = element_text(hjust = 0.5)) +
- scale_y_continuous(limits = c(105810, 180000)) +
- scale_x_date(date_breaks = "5 months", labels = scales::date_format("%b %Y")) +
- scale_colour_manual("", breaks = c("Obs. max. temp."), values = c("blue")) +
- theme(legend.position = "none")
Exibir o gráfico
g1
Error in RStudioGD() :
Shadow graphics device error: r error 4 (Error : C stack usage 7955288 is too close to the limit
)
In addition: There were 50 or more warnings (use warnings() to see the first 50)