You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May I request you to show how to modify these codes to produce the graph with percents and bars ordered by percent?
In fact, I tried different ways but failed.
Thanks in advance.
Ko Ko Zaw
The text was updated successfully, but these errors were encountered:
Hello Constantin,
Thank for your quick reply to issue #35 (showing percent instead of counts).
Under of your demonstration of "Adding Numbers on top", the following codes produce the graph with counts and bars ordered by frequency.
tidy_movies %>%
distinct(title, year, length, .keep_all=TRUE) %>%
ggplot(aes(x=Genres)) +
geom_bar() +
geom_text(stat='count', aes(label=after_stat(count)), vjust=-1) +
scale_x_upset(n_intersections = 20) +
scale_y_continuous(breaks = NULL, lim = c(0, 1350), name = "")
May I request you to show how to modify these codes to produce the graph with percents and bars ordered by percent?
In fact, I tried different ways but failed.
Thanks in advance.
Ko Ko Zaw
The text was updated successfully, but these errors were encountered: