Skip to content
Back to formatted view

Raw Message

Message-ID: <283897313.11356528.1466502535072.JavaMail.yahoo@mail.yahoo.com>
Date: 2016-06-21T09:48:55Z
From: Elahe chalabi
Subject: duplicate labels in Bar chart geom_text()

Hi all,
how should I avoid duplicate labels in geom_text for bar chart? in the bar chart below I have name of one country repeated several times on my bars, I only want COUNTRY to be shown above each bar:

    ggplot(df,aes(factor(Variable1),y=Variable2,fill=Variable3))+geom_bar(stat='identity')+geom_text(paste0(df$COUNTRY),position=position_dodge(width=0.2))

Thanks for any help!
Elahe