All,

 

I have a question regarding colors in bar plots.  I want to stack a
total of 18 cost values in each bar. Basically, it is six cost types and
each cost type has three components- direct, indirect, and induced
costs.  I would like to use both solid color bars and bars with the
slanted lines (using the density parameter).  The colors would
distinguish cost types and the lines would distinguish
direct/indirect/induced.  I want the cost types (i.e. colors) to be
stacked together for each cost type.  In other words, I don't want all
of the solid bars at the bottom and all of the slanted lines at the top.


So far, I have made a bar plot with all solid colors and then tried to
overwrite that bar plot by calling barplot() again and putting the white
slanted lines across the bars.  However, I can't get this method to work
while still grouping the cost types together.

 

Thanks in advance for any help you can provide.

 

David Winkel

Applied Biology and Aerosol Technology

Battelle Memorial Institute

505 King Ave.

Columbus, Ohio 43201

614.424.3513

 


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to