# geom calls are just a short cut for layer
ggplot(mpg, aes(displ, hwy)) + geom_point()
# shortcut for
ggplot(mpg, aes(displ, hwy)) +
layer(geom = "point", stat = "identity", position = "identity",
params = list(na.rm = FALSE)
)
Run the code above in your browser using DataLab