Hi R com
have the following code:
Summarise even further
new_df %>%
group_by(new_cust) %>%
summarise(total_sales = sum(total_sales, na.rm=TRUE),
freq = n()) %>%
arrange(desc(total_sales)) %>%
slice(1:10) %>%
ggplot (aes(new_cust, total_sales)) +
geom_bar(stat="identity")
and used the arrange(desc(.) to arrange the plot but it looks like this:
Thanks