Skip to content

Follow up to your reply to issue #35 (showing percent instead of counts) #36

Description

@zawkzaw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions