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

st: hist with addplot option

From   "Murali Kuchibhotla" <>
Subject   st: hist with addplot option
Date   Tue, 25 Nov 2008 14:27:49 -0600 (CST)

      I am trying to plot 2 histograms on the same graph using the addplot 
option as follows:

hist  math_grade if  MATH_cat==2 &  course=="econ_10", addplot(hist  
math_grade if  MATH_cat==2 &  course=="psych_101") freq addl

However, when I run this I get the same graph as when I run:

hist  math_grade if  MATH_cat==2 &  course=="econ_10",freq addl

Can someone please tell me what I am doing wrong? Also, is there a way to 
represent the bars of the 2 histograms in different colors? Thanks.

Murali Kuchibhotla 

*   For searches and help try:

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