Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Stacked bar chart with twoway
From
David Hoaglin <[email protected]>
To
[email protected]
Subject
Re: st: Stacked bar chart with twoway
Date
Fri, 1 Nov 2013 12:46:52 -0400
Hi, Donald.
A stacked or divided bar chart is often a poor type of display. Other
approaches are likely to be more effective; the choice would depend on
how your percentages behave. The book by Robbins (2005) has examples
of several alternative displays.
David Hoaglin
Robbins, N. B. (2005). Creating More Effective Graphs.
Wiley-Interscience. (Recently republished. Look at
www.nbr-graphs.com )
On Fri, Nov 1, 2013 at 11:37 AM, Likosky, Donald <[email protected]> wrote:
> I am trying to produce a stacked bar chart with the twoway command.
>
> The goal is to display differences in the proportion of two variables (trbc= _post_centername trbc_intra_centername ) for each of 70 hospitals. The hosp= itals would be on the x-axis, and the y-axis would be displaying proportion= s. I would like to display the graph as stacked bar chart for each medical = center. The code below color codes which hospital belongs to a particular g= roup (there are 4 groups with values of 1, 2, 3, 4).
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/