[R] Error in colouring by group in core plot R

Rui Barradas
2020-04-24T11:31:14Z

Hello,

This is probably off-topic since you have chosen base graphics but this
is much easier with ggplot.


library(ggplot2)

ggplot(df, aes(Index, Incidence, colour = Country)) +
   geom_line() +
   scale_colour_manual(values = c("red", "black",
"blue")) +
   theme_minimal()


Hope this helps,

Rui Barradas


?s 08:24 de 24/04/20, Luigi Marongiu escreveu: