I am new to R
I would like plot using ggplot2's geom_bar():
top_r_cuisine <- r_cuisine %>%
group_by(Rcuisine) %>%
summarise(count = n()) %>%
arrange(desc(count)) %>%
top_n(10)
But when I try to plot this result by:
ggplot(top_r_cuisine, aes(x = Rcuisine)) +
geom_bar()
I get this:
which doesn't represent the values in top_r_cuisine. Why?
EDIT: I have tried:


yis:ggplot(top_r_cuisine, aes(x = Rcuisine, y = count)) + geom_bar(stat = "identity")dput(top_r_cuisine)and paste the output of that into your question.aes(x = Rcuisine, y = count)but I get the same result.geom_colinstead ofgeom_baror like @SymbolixAU suggestedgeom_bar(stat = "identity")