Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: histogram


From   [email protected]
To   [email protected]
Subject   Re: st: histogram
Date   Tue, 22 Feb 2005 06:20:40 -0600

How about something like this:

sysuse auto, clear

gen price2= price if price <12000

twoway (histogram price, blcolor(white) blwidth(none) bfcolor(none) percent) ///
 (histogram price2, blcolor(gs12) bfcolor(gs12) percent gap(5) /// 
 legend(order(2 "Price < $12,000")) )


Hope this helps,
Scott





*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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