0
ggplot(data=weekly_stat_b2c, aes(x=week, y=weekly_gmv))+geom_col(fill="#006699")+
  geom_text(aes(x=week, y=weekly_gmv,label=paste0(round((weekly_gmv/1000),0),"K")), size=3)+
  theme(axis.title = element_blank(),
        panel.background = element_blank(),
        axis.line = element_line(color="gray", size=0.1),
        legend.position = 'none',
        legend.title = element_text(size=0.01))+
  scale_y_continuous(labels = scales::comma)

my data_set is grouped by week and summarized value of "weekly_gmv" I don't understand why label position is shown irregurlarily like the image. I tried to fix with vjust but it didn't work either. Could somebody help me please?

stefan
  • 90,330
  • 6
  • 25
  • 51
Justina
  • 11
  • 1
  • It would be easier to help you if you provide a [minimal reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) including a snippet of your data or some fake data so that we can run your code. Also, you missed to add the image so we don't know what you mean by *"why label position is shown irregurlarily like the image"* – stefan Jan 16 '23 at 12:33

0 Answers0