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

From |
mukta mukherjee <muktabondhu@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: RE: AW: Multiple histogram in same plot |

Date |
Thu, 16 Jul 2009 10:47:23 -0400 |

Yes, I wanted all the graph in the same panel. Thanks again for all the help. Mukta On Thu, Jul 16, 2009 at 10:35 AM, Martin Weiss<martin.weiss1@gmx.de> wrote: > > <> > > > You do not have a user-written command with that particular name lying > around in some dark corner of your hard drive/along the ado-path, do you? > Anyway, most Stata commands do allow the -by- option, and if you do intend > to have separate panels for your graph, it is the way to go for you. I took > your request to mean that you wanted all the information in one panel, which > led to my initial post... > > > > HTH > Martin > > > -----Ursprüngliche Nachricht----- > Von: owner-statalist@hsphsun2.harvard.edu > [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von mukta mukherjee > Gesendet: Donnerstag, 16. Juli 2009 16:33 > An: statalist@hsphsun2.harvard.edu > Betreff: Re: st: RE: AW: Multiple histogram in same plot > > Thanks, funny when I tried it was showing "histogram command" doesnot > allow by option. Thanks again. > Mukta > > > On Thu, Jul 16, 2009 at 9:50 AM, Martin Weiss<martin.weiss1@gmx.de> wrote: >> >> <> >> >> It does... >> >> >> ************* >> sysuse auto, clear >> hist mpg, by(rep78) >> ************* >> >> >> >> HTH >> Martin >> >> >> -----Ursprüngliche Nachricht----- >> Von: owner-statalist@hsphsun2.harvard.edu >> [mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von mukta > mukherjee >> Gesendet: Donnerstag, 16. Juli 2009 15:50 >> An: statalist@hsphsun2.harvard.edu >> Betreff: Re: st: RE: AW: Multiple histogram in same plot >> >> Thanks Nick , but histogram doesnot allow the by option. >> >> On Thu, Jul 16, 2009 at 8:57 AM, Nick Cox<n.j.cox@durham.ac.uk> wrote: >>> Rather, this sounds to me like a case for the -by()- option. >>> >>> Nick >>> n.j.cox@durham.ac.uk >>> >>> Martin Weiss >>> >>> Sounds much more like a -graph bar-: >>> >>> ****** >>> sysuse auto, clear >>> graph bar (mean) price, /// >>> over(foreign, label(nolabel)) /// >>> over(rep78) >>> ****** >>> >>> mukta mukherjee >>> >>> 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 >>> >>> * >>> * 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/ >> >> >> * >> * 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/ > > > * > * 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/

**References**:**st: Multiple histogram in same plot***From:*mukta mukherjee <muktabondhu@gmail.com>

**st: RE: AW: Multiple histogram in same plot***From:*"Nick Cox" <n.j.cox@durham.ac.uk>

**Re: st: RE: AW: Multiple histogram in same plot***From:*mukta mukherjee <muktabondhu@gmail.com>

**Re: st: RE: AW: Multiple histogram in same plot***From:*mukta mukherjee <muktabondhu@gmail.com>

- Prev by Date:
**AW: st: RE: AW: Multiple histogram in same plot** - Next by Date:
**st: Sample weights when combining different surveyes (NHANES)** - Previous by thread:
**AW: st: RE: AW: Multiple histogram in same plot** - Next by thread:
**Re: st: AW: Multiple histogram in same plot** - Index(es):

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