Good evening!
I am trying to plot a categorical variable which is the genre of movies (such as comedy ...) My code looks as following:
ggplot(df, aes(x=Genre))+
geom_bar(color="black",fill="blue", alpha=0.5)+
labs(title="Movies per Genre", x="Genre", y="Sum")
I would like to order the marplot in ascending/descending order. I found some solutions using "reorder" in aes and setting a "-" in front of one of the variables. However, the problem I am facing is that I do not have a Y variable for the count. Is there any other solution to this problem?
Thank you very much!