Statalist


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

Re: st: AW: Multiple histogram in same plot


From   mukta mukherjee <[email protected]>
To   [email protected]
Subject   Re: st: AW: Multiple histogram in same plot
Date   Wed, 15 Jul 2009 19:16:49 -0400

thanks would try it.

On Wed, Jul 15, 2009 at 4:23 PM, Martin Weiss<[email protected]> wrote:
>
> <>
>
> Sounds much more like a -graph bar-:
>
> ******
> sysuse auto, clear
> graph bar (mean) price, ///
> over(foreign, label(nolabel)) ///
> over(rep78)
> ******
>
> HTH
> Martin
>
>
> -----Ursprüngliche Nachricht-----
> Von: [email protected]
> [mailto:[email protected]] Im Auftrag von mukta mukherjee
> Gesendet: Mittwoch, 15. Juli 2009 22:17
> An: [email protected]
> Betreff: st: Multiple histogram in same plot
>
> Hi!
> Could anybody tell me how to plot multiple histogram in the same
> graph? I have 10 industry and would like to make histogram for the
> variable say wages for each industry , but plot it column wise for
> each industry.
>
> I was trying the following code but without success.
>
> capture   program drop _hist_
> program define _hist_
> su indusid if(indusid>=50) ,meanonly
> forvalue a=`r(min)'/`r(max)'{
> histogram(`1') if (indusid==`a') ,title ("Histogram for `1' and
> indu_`a'")kdensity
> graph save "$m`1'`a'",replace
>  }
> end
>
>
> global m "H:\Labor1\Fringe benefit tax\stata\All Industry"
> *set trace on
> _hist_ wages
>
> Thanks
> Mukta
> *
> *   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/
>
>
> *
> *   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/
>



-- 
"Be around people who can keep your energy and inspiration
high. While you can make progress alone, it's so
much easier when you have support."by Dr. Joe Vitale

"Whatever we plant in our subconscious mind and
nourish with repetition and emotion will one day become a reality."by
Earl Nightingale

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index