I want to plot the first layer with all the actual data point with circles, and the second layer with mean value using diamonds. I have my fist layer as follows:
ggplot(daphnia, aes(x = parasite, y = growth.rate, color = parasite)) +
geom_point(size = 4) +
theme_bw() +
coord_flip()
which part should modify to add on the second layer? I have calculated the mean for each group and stored it in the data frame sumDat.
It should look like this: enter image description here