Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Graphing


From   solafem7@yahoo.co.uk
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Graphing
Date   Mon, 23 Jul 2012 22:40:49 +0000

Hi Shittu,
I totally agreed with both William Buchana and Lars Folkestad. You need to look for help file for- graph bar. This is because you know what you really need. I think a command like this may help in the first part of your question:                              
 .graph bar ranks, over(diseases, label(angle(45))) blabel(bar)

Regards
Sola.
Sent from my BlackBerry wireless device from MTN

-----Original Message-----
From: "Shittu, Aminu" <ameen_vet@yahoo.com>
Sender: owner-statalist@hsphsun2.harvard.edu
Date: Mon, 23 Jul 2012 09:33:23 
To: statalist@hsphsun2.harvard.edu<statalist@hsphsun2.harvard.edu>
Reply-To: statalist@hsphsun2.harvard.eduSubject: st: Graphing

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/

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index