title: Automatic outlier labeling in ggplot
body: <p>I have used ggplot in a loop to generate scatter plots for each of my 200 variables-V1, V2,etc. To make the scatter plots clearer, I would like to be able to label the outliers, automatically. I want to label the points that are greater than the value of the 95th Percentile for each unique variable.</p>
  
  <p>I tried using the code from here-<a href="https://stackoverflow.com/questions/15624656/label-points-in-geom-point]">Label points in geom_point</a>, however, this is more of a manual approach to labeling outliers. I have about 200 variables and cannot specify the values for each of them. </p>
  
  <p>Again, the closest solution I could find was from the link above: 
  county_list[i] is the list of the variables that I'm looping over</p>
  
  <pre><code>    ggplot(nba, aes(x= county_list[i], y= Afd_2017, colour="green", label=Name))+
      geom_point() +
      geom_text(aes(label=ifelse(value_of_V[i]&gt;24,as.character(Name),'')),hjust=0,vjust=0)
  </code></pre>
  
  <p>What I would like is something like this:</p>
  
  <pre><code>    ggplot(nba, aes(x= county_list[i], y= Afd_2017, colour="green", label=Name))+
      geom_point() +
      geom_text(aes(label=ifelse((value_of_V[i] &gt;greater-than- 
      value-of-the-95-Percentile-of-the- 
      value_of_V[i]),as.character(Name),'')),hjust=0,vjust=0)
  </code></pre>