Indian style thousand separators are used like this. First separator at 3 digits (thousands) but thereafter separator at every two digits.
1
10
100
1,000
10,000
1,00,000
10,00,000
1,00,00,000
10,00,00,000
I know that I can change/format axes in ggplot2 chart by using scale_y_continuous(labels = scales::comma)
But how can I change the thousand separator placeholder in r ggplot2 chart axes according to Indian formats as described above.
A sample example
library(tidyverse)
iris %>%
mutate(Petal.Length= Petal.Length*100000) %>%
ggplot(aes(x= Species, y = Petal.Length)) +
geom_col() +
scale_y_continuous(labels = scales::comma)
Created on 2021-06-28 by the reprex package (v2.0.0)