r documentation geom_point code example Example: geom_point r library(ggplot2) ggplot(diamonds, aes(x = x, y = y)) + geom_point()