Question: How do I fix this data set to flip so the incomes are on the bottom and coupon redemption ( 0 , 2 0 0

How do I fix this data set to flip so the incomes are on the bottom and coupon redemption (0,200,400,600) are on the side? And can I change the colors?Coupon Redemption Count by Top 10 Incomes
Total coupon redemption for each income level
demographics %>%
inner_join(coupon_redemptions)%>%
mutate(income = fct_lump_n(fct_infreq(income), n =10, other_level = "Others"),
Legend = fct_other(income, keep = "Others", other_level = "Top 10 Incomes"))%>%
ggplot(aes(income, fill = Legend))+
geom_bar()+
coord_flip()+
labs(x = "Coupon Redemption Count",
y = "Income Range",
subtitle = "Total coupon redemption for each income level")+
ggtitle("Coupon Redemption Count by Top 10 Incomes")
 How do I fix this data set to flip so the

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!