So this is my code (simplified):
orderharvest <- c("march 1st", "april 2nd", "august 21st", "september 1st")
ggplot(fruitharvest, aes(x = type, y = mass, group = harvest, color = harvest))+
geom_point(color = "white")+
geom_smooth(method=lm, se = FALSE)
Thing is, I want to order the harvests by orderharvest. Normally I would add
fruitharvest$harvest = factor(fruitharvest$harvest, level = orderharvest)
But then the colour is removed, how do I get both?
The rest of the code:
I want to just see the trendlines, hence the color = "white". If there is a different way to do this I would love to know.
Thanks!