为ggplot2放等式:stat_smooth

时间:2019-03-07 21:12:48

标签: r ggplot2 non-linear-regression

如何放置适合这些点的方程式?

ggplot(data=iris) +
  geom_point( aes(x=Sepal.Length, y=Petal.Length,color=Species)) +  
  stat_smooth(aes(x=Sepal.Length, y=Petal.Length),method = "loess")

enter image description here

0 个答案:

没有答案