[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
Andreas Stiehler <as@berlecon.de> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Stata 8 graphics, bar charts (stacked), color of labels |

Date |
Fri, 17 Sep 2004 09:37:56 +0200 |

Firstly, I wish to thank for all the responses to my question. Uli is right:

if y, for example, consists of 6 or 7 different values I have first to define the some number of different colors for the background.. graph bar x, over(y) blabel(bar, color(white) position(inside))

Probably, I will need some darker and brighter colors for it. Respectively, I would like to use white and black labels within one bar.

(Putting the labels outside the bars or using boxes does not look very nice in my graphs.)

Therefore, I will try to apply Uli's solution.

Thank You,

Andreas

Am 16.09.2004 um 15:53 schrieb Ulrich Kohler:

Derek Wagner, StataCorp wrote:I think the problem of the original poster (Andreas Stiehler <as@berlecon.de>)Roger Newson wrote:with the -bar(#, bcolor())- option I can only determine the color (and characteristics) of the bars - not of the labels (I am right?). For a dark bar color, for example, I would like to use white labels and vice versa. Is there any way to do that (without using boxes)?If you would like dark bars and white labels within the bars, you could use the -blabel- option with the -color- suboption. You will also want to put the labels within the bars (instead of on top) because a white label would "disappear" on a white background- so you could use the -position- suboption for that purpose. For example, your command might look like the following: . graph bar x, over(y) blabel(bar, color(white) position(inside))

was different. He wants to specify different label colors for stacked bars.

Imagine a stacked bar chart with a lower bar-region in, say, black and and an

upper bar-region in white. In this case one wants to have white labels in the

lower bar and black labels for the upper bar. There is a solution with -graph

twoway bar- (see my posting from yesterday). However this solution seems to

be a bit complicated, given that on can tackle a similar problem directelly

with -graph pie-.

regards

uli

--

kohler@wz-berlin.de

+49 (030) 25491-361

*

* For searches and help try:

* http://www.stata.com/support/faqs/res/findit.html

* http://www.stata.com/support/statalist/faq

* http://www.ats.ucla.edu/stat/stata/

Dr. Andreas Stiehler Analyst Berlecon Research GmbH Oranienburger Straße 32 D-10117 Berlin Fon: +49 30 285296-0 Fax: +49 30 285296-29 E-Mail: tw@berlecon.de Web: www.berlecon.de Analysten-Weblog: weblog.berlecon.de Newsletter-Abo: mailto:berlecon-aktuell-subscribe@berlecon.de -------------------------------------------------------------------- Berlecon Research - Wir analysieren das Potenzial neuer Technologien -------------------------------------------------------------------- * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**References**:**RE: st: Stata 8 graphics, bar charts (stacked), color of labels***From:*dwagner@stata.com (Derek Wagner, StataCorp)

**Re: st: Stata 8 graphics, bar charts (stacked), color of labels***From:*Ulrich Kohler <kohler@wz-berlin.de>

- Prev by Date:
**st: Re: Split-half; was: OT:your favorite math equations editor** - Next by Date:
**st: AW: Stata procedure for mixed linear models** - Previous by thread:
**Re: st: Stata 8 graphics, bar charts (stacked), color of labels** - Next by thread:
**st: RE: Stata 8 graphics, bar charts (stacked), color of labels** - Index(es):

© Copyright 1996–2016 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |