s-news
[Top] [All Lists]

different colors for bars in bar graph

To: s-news@wubios.wustl.edu
Subject: different colors for bars in bar graph
From: Jeff Simonoff <jsimonof@stern.nyu.edu>
Date: Thu, 20 May 2004 10:57:09 -0400 (EDT)
Hi folks,
I am using barplot() to create a bar chart for a set of proportions being
compared to each other. The separate bars are color-coded in a meaningful
way, and I would like to use different colors when shading each of the
different bars. I'm exporting the picture to Postscript, so I have access
to a wide variety of colors, but I don't know how to change the shading
color bar by bar. Does anyone have any idea if this can be done, and if
so, how to do it?

               Best,

               Jeff

==============================================================================
Jeffrey S. Simonoff                            Phone:  (212) 998-0452
Professor of Statistics
Leonard N. Stern School of Business            Fax:    (212) 995-4003
New York University
44 West 4th Street, Rm. 8-54                   e-mail: jsimonof@stern.nyu.edu
New York, NY 10012-0258
USA                                    WWW: http://www.stern.nyu.edu/~jsimonof
==============================================================================


<Prev in Thread] Current Thread [Next in Thread>