May 2019
Beginner to intermediate
266 pages
5h 57m
English
The major shortcoming of histograms (which we discussed in an earlier section) is that they are quite sensitive to the choice of bin margins and the number of bins. The best alternative to this is to use density plots, which are regarded as a smoothed version of a histogram. We will implement the following steps to create density plots for an iris dataset:
> library(ggplot2)Attaching package: 'ggplot2'The following object is masked _by_ '.GlobalEnv':mpgWarning message:package 'ggplot2' was built under R version 3.5.3
Read now
Unlock full access