Question: ggplot ( credit _ data _ cleaned, aes ( duration ) ) + + geom _ histogram ( aes ( y = after _ stat

ggplot(credit_data_cleaned, aes(duration))+
+ geom_histogram(aes(y = after_stat(density)),
+ bins=number_bins, fill="grey", col="black")+
+ geom_density(col="red", lwd=1)+
+ stat_function(fun=dnorm, args = list(mean = xbar, sd = s),
+ col = "blue", lwd =1)+
+ geom_vline(xintercept=xbar, linetype=1, lwd=1)+
+ geom_vline(xintercept=median, linetype=2, lwd=1)+
+ ggtitle("Histogram of duration")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!