title: How do I align geom_text elements in center of first bar?
body: <p>I am making a grouped bar chart in ggplot2 and want to put labels from the legend in the topmost group of bars.</p>
  
  <p>My data frame looks like this in comma-separated format.</p>
  
  <pre><code>Group,Enrollment,Punished,PunishmentRate,Geography2
  Total,2001957,302878,0.1512909618,State
  Black,436329,117791,0.2699591363,State
  Hispanic,625588,72974,0.1166486569,State
  White,855256,96396,0.1127101125,State
  Total,151818,14159,0.0932629859,Local
  Black,38933,6816,0.175069992,Local
  Hispanic,53690,3789,0.0705718011,Local
  White,53036,2925,0.055151218,Local
  </code></pre>
  
  <p>In my R script, this dataframe is in the variable <code>dummy</code>.</p>
  
  <pre><code>ggplot(
    data = dummy,
    aes(
      fill = Geography2,
      x = Group,
      y = PunishmentRate
    )
  ) +
    geom_bar(
      position = "dodge",
      stat = "identity",
      width = 0.5
    ) +
    coord_flip() +
    geom_text(
      aes(
        label = Geography2,
        y = 0
      ),
      position = position_dodge(1),
      hjust = 0
    )
  </code></pre>
  
  <p>The outputted chart looks like this.</p>
  
  <p><a href="https://i.stack.imgur.com/oW62A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oW62A.png" alt="enter image description here"></a></p>
  
  <p>How do I do the following?</p>
  
  <ol>
  <li>Center "State" and "Local" vertically in the middle of the bar?</li>
  <li>Only show the label for the first bar group (the topmost set)?</li>
  </ol>