I am trying to add the legends in my area chart but I have problems and I can't position them to the right of the chart, this is my code and this is my data data
library(ggplot2)
df <- read.csv("/home/pronostico_gas.csv")
gas <- as.data.frame(df[, 1:3])
ggplot(gas) +
geom_area(aes(x = año, y = qg),
colour = "#E2E418", fill = "#E2E418", alpha = 0.7, show.legend = TRUE) +
geom_line(aes(x = año, y = np),
colour = "#C5B21D", size=1, linetype = "dashed", show.legend = TRUE) +
scale_x_continuous(breaks = gas$año) +
scale_y_continuous(breaks = seq(0, 250, 40)) +
labs(title = "Title", x = "año", y = "qo") +
theme_classic() +
theme(plot.title = element_text(hjust = 0.5))