I am learning R on datacamp and had to use a hint to get this answer, but I do not understand how it works. Why am I able to use 'name' vector as a value for colour and how does ggplot chose which color to plot the lines in the output.
Thank you.
I initially called colour = c("red", "blue", "black") to represent each of Steven, Thomas and Mathew.
Also see the head of the data set (head(selected_names) I am trying to draw a line graph from.