在ggplot中添加额外的点

df = data.frame(Sepal.Width = 5.6, Sepal.Length = 3.9) 

ggplot(iris, aes(x = Sepal.Width, y = Sepal.Length, col = Species)) +
  geom_point() +
  geom_point(data = df, col = 'blue')

from https://stackoverflow.com/questions/36541086/adding-a-extra-point-in-a-ggplot2-graph

你可能感兴趣的:(在ggplot中添加额外的点)