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]

st: option problems with byhist (interlaced histogram)


From   Patricia Biedermann <patricia.biedermann@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: option problems with byhist (interlaced histogram)
Date   Tue, 29 Nov 2011 10:38:46 -0800 (PST)

I want to produce an interlaced histogram with two variables:
1. Variable: 1= Case; 2=Control (binary)

2. Varialbe: 1=Agriculture, 2=Employment; 3=Business, and so on... (categorical)


I tried this command:

byhist occup, by(casecontrol) percent tw1(color(blue) lwidth(3)) tw2(color(red) lwidth(3))

so far it works very well, BUT I also wanted to put 

- title
- legend
- lables

- etc.
into the graph. everytime I try this, I got a error message. e.g: option 
title not allowed...so what can I do? Is there any other solution to 
make this graph? 

(the important thing is that it has to be ONE GRAPH!)


thanks!!!Patricia
*
*   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