Add comma separator in geom_text label
Add comma separator in geom_text label
Situation: You want to create two y-axes. The left y-axis measures an amount, while the right y-axis converts the amount to a percentage.
df %>%
ggplot(aes(x = var1, y = var2)) +
geom_col() +
geom_text(aes(label = scales::comma(Count_variable)), size = 15)
For more content on data, tech and web3 find me on Twitter.