Why is geom_text() plotting the text several times?
问题 Please consider the following minimal example: library(ggplot2) library(ggrepel) ggplot(mtcars) + aes(x = mpg, y = qsec) + geom_line() + geom_text(x = 20, y = 20, label = "(20,20)") I guess you can see pretty easily that the text "(20,20)" is heavily overplotted (actually, I don't know whether that's the correct word. I mean that the text is plotted several times at one location). If I use annotate() , this does not happen: ggplot(mtcars) + aes(x = mpg, y = qsec) + geom_line() + annotate(