I am running the kaggle competition on the house prices estimate following the notebook provided by a professionals.You can check it on
https://www.kaggle.com/erikbruin/house-prices-lasso-xgboost-and-a-detailed-eda/report#missing-data-label-encoding-and-factorizing-variables
When annotate the bar plot,the code is shown below
ggplot(all[!is.na(all$SalePrice),], aes(x=MiscFeature, y=SalePrice)) +
geom_bar(stat='summary', fun.y = "median", fill='blue') +
scale_y_continuous(breaks= seq(0, 800000, by=100000), labels = comma) +
geom_label(stat = "count", aes(label = ..count.., y = ..count..))
I am very confused about the geom_label arguments even though I searched the help list.What does the last line mean?Why I should also let
'y=stat(count)'