I am trying to plot a boxplot between two attributes from my dataset "Neighborhood" and "SalePrice". The SalePrice includes values from 35,000 to 750,000. When i am trying to plot the graph between them, it is showing SalePrice as 1e+05, 2e+05 etc.
I am using this code
chart1 = ggplot(data, aes(x= Neighborhood, y= SalePrice)) + geom_boxplot() + geom_hline(aes(yintercept= 70), colour = "red", linetype= "dashed", lwd=2) + theme(axis.text.x = element_text(angle = 90, hjust =1))
chart1
If i am using
scale_y_continuous(labels = dollar_format())
It is giving me error (Error in dollar_format() : could not find function "dollar_format")
Anyone knows how can I fix this problem. I want to show prices in 0 - 100,000 - 200,000 . . .