I have a simple melted data frame with 5 variables that I am plotting in a multiple line graph in ggplot2. I posted my code below and I feel the answer to this question should be simple, yet I can't find the answer.
If I am plotting 5 lines together on the same chart, is there a way to make one of the lines (the mean in this case) bolder/larger than the others?
As you can see in the code at the bottom, I specified that the size of the lines as 2 which makes all 5 lines the size of 2. But I was hoping to have the Mean line (the line specified as black in the scale colour function) become larger than the other lines.
I attempted setting size to size = c(2,2,2,2,3)
but ggplot2 did not like that.
FiveLineGraph <- ggplot(data= df, aes(x= Date, y=Temperature, group= model, colour= model)) +
geom_line(size= 2) +
scale_colour_manual(values = c("red","blue", "green", "gold","black"))
Any ideas?
I appreciate your help in advance.
Thanks.