title: R ggplot2: how to automatically adjust the grey area behind the barplot
body: <p>I want to adjust make the width of the gray area and the bar plot smaller. 
  Now the grey area on the left and right to the plot is too much as you can see in my screenshot. Looking for a solution that also captures the scenario that I have 3 or more bars in the chart.</p>
  
  <pre><code>ggplot(data=MyDataFrame, aes(x='Text', y=MetricColumn, fill=LegendTag))+ 
    scale_fill_brewer(palette="Set3")+ 
    geom_bar(stat="identity", width=0.2)+
    geom_text(aes(label=paste0(MetricColumn,"%")), position = position_stack(vjust = .5), size = 3.5, color = "black")+
    labs(title="Text of the title")+ 
    theme(plot.title = element_text(hjust = 0.5, face="bold"))+
    theme(legend.position="left")
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/aEkOu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aEkOu.png" alt="enter image description here"></a></p>