Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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")
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

What is the median debt-to-income ratio?

Answered: 1 week ago

Question

What is the median loan amount?

Answered: 1 week ago

Question

What is the total loan amount?

Answered: 1 week ago