Posted on 28th April 2025|118 views
How to add the legend to ggplot2?
Posted on 28th April 2025| views
You can add it this way for example if you are adding colours of lines in the graph
ggplot(dd) + geom_line(aes(x=fecha, y=value, colour=variable)) + scale_colour_manual(values=c("orange","blue","graeen"))