I have added counts to the top of bars, but cannot figure out how to add % in brackets next to the count! My attempts return prop*100 next to the count above the bar. Here is my code that generates count only - what do I need to modify to this to add the %?
df %>%
ggplot(aes(x = day_of_week, fill = day_of_week)) +
geom_bar(position = "dodge") +
geom_text(aes(label = ..count..), stat = "count", vjust = -1.0, colour = "black") +
ylim(0, 2600) +
theme_classic() +
theme(legend.position="none",
axis.text.x = element_text(angle=45, hjust=1)
) +
scale_fill_brewer(palette = 1, direction = - 1) +
xlab("day_of_week") +
ylab("Count (n)")

