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: multiple categories on one histogram


From   Nick Cox <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   RE: st: multiple categories on one histogram
Date   Fri, 15 Oct 2010 12:14:34 +0100

See also -stripplot- from SSC and 

SJ-9-3  gr0040  .  Stata tip 78: Highlighting subsets & downplaying substrates
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  N. J. Cox
        Q3/09   SJ 9(3):499--503                                 (no commands)
        tips on how to use gray to highlight subsets and
        downplay substrates in graphs

Nick 
[email protected] 

Austin Nichols

See -byhist- on SSC; also -bihist- and -vioplot- on SSC for related graphs.

On Thu, Oct 14, 2010 at 10:57 PM, Michael Eisenberg

> 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?

*
*   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