I am quite new in ggplot and I have a question to relabelling the x-axis.
ggplot(female_income)+geom_bar(mapping=aes(x=household_income))
but the result is
I want a result like this
I am quite new in ggplot and I have a question to relabelling the x-axis.
ggplot(female_income)+geom_bar(mapping=aes(x=household_income))
but the result is
I want a result like this
Thank you all for comments, I found the way to solve it in a similar question.
positions = c("$0 - $24,999", "$25,000 - $49,999", "$50,000 - $99,999","$100,000 - $149,999")
ggplot(female_income)+geom_bar(mapping=aes(x=household_income))+scale_x_discrete(limits = positions)