Trending Plotmeans Ggplot2 In some cases, ggplot2 now produces a warning or an error for code that previously produced plot output. Plotmeans Ggplot2 - Library(ggplot2) ggplot(diamonds) # if only the dataset is known.