Bookmark and Share

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: Graphing


From   David Hoaglin <[email protected]>
To   [email protected]
Subject   Re: st: Graphing
Date   Mon, 23 Jul 2012 22:07:17 -0400

Dear Aminu,

A key message is that stacked bars are generally a bad idea.

You would do better with a little histogram for each disease (5 bars,
each sitting on the horizontal axis) and no numbers on top.

This approach has the advantage (stressed by Bill Cleveland in the
work that Nick cited) that the 8 bars for each rank, though not
adjacent, have a common baseline.

David Hoaglin

On Mon, Jul 23, 2012 at 12:33 PM, Shittu, Aminu <[email protected]> wrote:
> Dear Statalisters,
>
> I have a qualitative data where 8 diseases ranked (1 (most-important) to 5 (least important)) based on perception - 37 subjects were interviewed so 37 records in the dataset. Please what Stata command should I use to plot a bar chart showing the count of responses per category for each disease. I will place diseases on my x-axis and disease ranks on the y-axis (starting with 5, 4, 3, 2 and 1 from bottom to the top of the axis), and then stack 5 bars per disease showing the total counts on the top of each bar? I am also interested in the alternative plot of using a single multi-coloured bar per disease (y-axis), and the number of counts (x-axis), and then incorporate a key defining each of the colour.
>
> Aminu.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index