I would like to print counts on the plot points utilizing the fact that geom_count() does the counting.
Can you tell what should be changed in geom_text() line to get this done? What to put in the label = ... command?
(the plot uses Galton's parent & child height data)
library(tidyverse) library(UsingR) ggplot(galton, aes(parent, child))+ geom_count()+ geom_smooth(method = "lm")+ geom_text(label = ..., color="red")