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: multiple categories on one histogram
From
Michael Eisenberg <[email protected]>
To
[email protected]
Subject
Re: st: multiple categories on one histogram
Date
Thu, 14 Oct 2010 22:49:02 -0500
perfect. thanks.
On Thu, Oct 14, 2010 at 10:28 PM, Austin Nichols
<[email protected]> wrote:
> Michael Eisenberg <[email protected]> :
> See -byhist- on SSC; also -bihist- and -vioplot- on SSC for related graphs.
>
> On Thu, Oct 14, 2010 at 10:57 PM, Michael Eisenberg
> <[email protected]> wrote:
>> Colleagues,
>>
>> I would like to graph the distribution of height for two populations
>> on a histogram.
>>
>> I tried
>>
>> hist(height), by(var)
>>
>> But this yields 2 separate histograms.
>>
>> Is is possible to plot the histograms for both var categories on the
>> same graph in different colors?
>>
>> Thank you.
>>
>> Mike
> *
> * 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/