only creates a ggplot blank object, using the diamonds
data set. To display requires providing aesthetics indicating what variables to plot and geoms to specify how to plot them.
library(ggplot2)
p <- ggplot(diamonds,aes(carat,depth))
p + geom_point() + theme_minimal()