title: color bar plot depending on the x value with R
body: <p>I have bar plot realize with R and I would like to color the bars with different colors depending on the value of the x-axis. For example I would assign for for the bar with x = 1 the color orange, for the bar with x = 2 the color yellow, for the bars 3=&lt;x=&lt;5 the color light green and for the bars from 6 to 28 the color dark green. How do I enter this condition?</p>