What is the difference between ggplot and ggplot2?

This rounds up the idea by @dc37:

library(ggplot2)
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) + geom_point()

ggplot2 is the package and ggplot() is the main function.

Leave a Comment