[R] Gradients in bar charts XXXX

Jason Rodriguez Jason.Rodriguez at dca.ga.gov
Mon Apr 9 20:40:29 CEST 2012


Hello, I have a graphics-related question:

I was wondering if anyone knows of a way to create a bar chart that is colored with a three-part gradient that changes at fixed y-values. Each bar needs to fade green-to-yellow at Y=.10 and from yellow-to-red at Y=.20. Is there an option in a package somewhere that offers an easy way to do this?

Attached is a chart I macgyvered together in Excel using a combination of a simple bar chart, fit line, and some drawing tools. I want to avoid doing it this way in the future by finding a way to replicate it in R.

Any ideas?

Thanks,

Jason Michael Rodriguez
Data Analyst
State Housing Trust Fund for the Homeless
Georgia Department of Community Affairs
Email:  jason.rodriguez at dca.ga.gov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Unknown outcomes chart 120410.pdf
Type: application/pdf
Size: 116248 bytes
Desc: Unknown outcomes chart 120410.pdf
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120409/5c6db8a7/attachment.pdf>


More information about the R-help mailing list