Change a color when using both group and color in ggplot

Hi, I have a following problem. I would like to combine two ggplots. Everything works, but I cannot change the color of the second plot. Because I combine more plots together, I cannot use simply color = Licence. See small example bellow:

plot  <- ggplot() +
  
  #I CANNOT CHANGE THE COLOR HERE !!!!
  geom_line(data = dataset, aes(  x = Season, y = competitionLevelNum, group= Licence, color = 
 "blue"))

plot3  

All the time I got a pink color, not blue. See output above. Can anybody help me, please?

You've got to move the color = "blue" argument outside the aes() function.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.