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 on April 23, and its replacement, is already up and running.

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

st: multiple categories on one histogram

From   Michael Eisenberg <>
Subject   st: multiple categories on one histogram
Date   Thu, 14 Oct 2010 21:57:03 -0500


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.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index