Data Science Desktop Survival Guide
by Graham Williams |
|||||
Line Chart Density Distribution |
20200428
ds %>%
ggplot(aes(x=max_temp)) + geom_density() + labs(x=vnames["max_temp"], y="Density")
A density plot using ggplot2::geom_density() will convey the distribution of the values of a variable. Here, for example, we can see that max_temp has a roughly normal distribution with a peak around the low 20's (degrees Celsius) and fairly short tails.
|