 
 
| From | Devra Golbe <[email protected]> | 
| To | [email protected] | 
| Subject | Re: st: Re: labeling overlaid histograms | 
| Date | Sat, 13 Dec 2003 10:42:44 -0500 | 
Use the -yvarlabel()- option within each -histogram- plot-type:
        . twoway                                        ///
        (histogram weight if foreign==0,                ///
                density blcolor(blue) bfcolor(none)     ///
                yvarlabel(Domestic)                     ///
        )                                               ///
        (histogram weight if foreign==1,                ///
                density blcolor(red) bfcolor(none)      ///
                yvarlabel(Foreign)                      ///
        )
And Scott this slightly different solution:
I use the -legend(label(# "text"))- option. Something like this: twoway (histogram weight if foreign==0, density blcolor(blue) bfcolor(none) legend(label(1 "Domestic"))) /// (histogram weight if foreign==1, density blcolor(red) bfcolor(none) legend(label(2 "Foreign")))
| © Copyright 1996–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |