[R] How to use color shade in Stacked bar plot?
jim at bitwrit.com.au
Tue Jul 24 10:53:02 CEST 2012
On 07/24/2012 02:34 AM, Manish Gupta wrote:
> I am wokring on stacked R plot but i want to use shade color of red for each
> stack and corresponding legend. How can i use it?
I think what you want is a series of reds that you can use to
distinguish the bars in a stack. The series will be repeated in each
stack of the plot. If this is the case, maybe this will help:
# assume you have five bars in each stack
# first use saturation - deep red to pink
# then try brightness - bright red to dark red
# finally use different red colors
More information about the R-help