What is the difference in mapping the Species to color aesthetic inside ggplot and inside geom_point. I am using iris data set.
ggplot(aes(x = Sepal.Length, y = Petal.Length, color = Species), data =
trainData)+
geom_point()+
geom_smooth()
AND
ggplot(aes(x = Sepal.Length, y = Petal.Length), data = trainData)+
geom_point(aes(color = Species))+
geom_smooth()
The graph I am getting:


ggplot. - Roland