|>
smaller ggplot(aes(x = carat)) +
geom_freqpoly(binwidth = 0.01)
This example uses library(tidyverse)
. See What is the tidyverse? by Joseph Rickert for an overview of tidyverse.
Code example is from the quarto chapter of R for Data Science.
We have data about 53940 diamonds. Only 126 are larger than 2.5 carats. The distribution of the remainder is shown below: