I am trying to implement the viridis package using viridis:: + scale_fill_viridis().
This is my code:
ggplot(combi_plot, aes(x = day_of_symptoms, y = ct_value)) + geom_smooth(aes(colour=gender)) +
xlim(-5,20) + scale_fill_viridis()
However, this probably interferes with my use of aes(colour=gender), which draws a seperate line for the two genders in my dataset, using 2 different colours of the ggplot2 basic palet.
My question is: How do you use a custom color palette such as viridis, in combination with the aes(colour="variable") argument.
Cheers