title: Label boxes in ggplot2 boxplot
body: <p>I would like a label to appear above each box in a boxplot generated by <code>ggplot2</code>.</p>
  
  <p>For example:</p>
  
  <pre><code>#Example data
  test = c("A", "A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "B")
  patient = c(1, 1, 2, 2, 3, 3, 1, 1, 2, 2, 3, 3)
  result =  c(5, 7, 2 ,4, 6, 7, 3, 5, 5, 6, 2 ,3)
  data &lt;- tibble(test, patient, result)
  
  #Labels I want to include
  Alabs = c(1, 3, 500)
  Blabs = c(8, 16, -32)
  
  #Plot data
  ggplot(data, aes(x = factor(patient), y = result, color = factor(test))) + 
    geom_boxplot(outlier.shape = 1)
  </code></pre>
  
  <p>Gives the plot:</p>
  
  <p><a href="https://i.stack.imgur.com/JuzlU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JuzlU.png" alt="enter image description here"></a></p>
  
  <p>I would like to print the first element of <code>Alabs</code> above the red box for the first patient, the second element of <code>Alabs</code> above the red box for the second patient, the first element of <code>Blabs</code> above the blue box for the first patient, etc.</p>
  
  <p>How do I do this?</p>