title: How to get axis ticks labels with different colors within a single axis for a ggplot graph?
body: <p>Consider a simple ggplot2 graph</p>
  
  <pre><code>library(ggplot2) 
  dat &lt;- data.frame(name=c("apple", "orange", "plum"),value=c(3,8,2),outlier=c(FALSE,TRUE,FALSE))
  ggplot(dat)+geom_point(aes(x=value,y=name))
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/JdgMQ.png" alt="enter image description here"></p>
  
  <p>Is there a way to modify styles attributes of the axis y labels (say color) conditionally, for example depending on the <code>outlier</code> column in <code>dat</code>?</p>
  
  <p>The result would be something like</p>
  
  <p><img src="https://i.stack.imgur.com/3TFdm.png" alt="enter image description here">   </p>
  
  <p>On a graph with a large number of items this feature wold greatly improve the graph readability and impact. </p>