opts(title="Iceberg - Postharvest Quality"
,strip.background = theme_rect(colour = 'NA', fill = 'NA')
,axis.text.y = theme_text(colour=c( "red", "black", "red", "black", "black", "black", "black", "black", "black", "black"
, "black", "black", "black", "black", "black", "black", "black", "black", "black", "black"
, "black", "black", "black", "black", "black", "black", "black", "black", "black", "black"
, "black", "black", "black", "black", "black", "red", "black", "red", "black", "black"
, "black", "black", "black", "black", "black", "black", "black", "black", "black", "black"
, "black", "black", "black", "black", "red", "black", "black", "black", "black", "red"), hjust=1))+
Kind of messy how I did it, but you could use a if/else statement to define your colors in a vector the length of your factor levels and do it that way... If you want to do this on a continuous axis you might have some trouble (or so I believe.
Brandon
--
You received this message because you are subscribed to the ggplot2 mailing list.
Please provide a reproducible example: http://gist.github.com/270442
To post: email ggp...@googlegroups.com
To unsubscribe: email ggplot2+u...@googlegroups.com
More options: http://groups.google.com/group/ggplot2
More options: http://groups.google.com/group/ggplot2