September 2018
Beginner to intermediate
140 pages
2h 52m
English
In this section, we'll use density plots to compare loan distributions for different credit grades.
ggplot(df3,aes(x=loan_amnt)) + geom_histogram() + facet_ wrap(~grade)
Take a look at the following output screenshot:

ggplot(df3,aes(x=loan_amnt)) + geom_density() + facet_wrap(~grade)
Take a look at the following output screenshot: ...
Read now
Unlock full access