Posted on 5th September 2024|118 views
How to add the legend to ggplot2?
Posted on 5th September 2024| 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"))