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

From |
Scott Merryman <[email protected]> |

To |
[email protected] |

Subject |
Re: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1) |

Date |
Mon, 4 May 2009 06:35:36 -0500 |

As Martin pointed out, I recorded the graph editor changes (-help graph_editor-) and then used the .grec files to retrieve the commands. I believe I learned about -gr_edit- on Statalist from Michael Blasnik (http://www.stata.com/statalist/archive/2007-07/msg00616.html). Nick, after providing needed commentary to my reply, asked "An open question is whether there is another way to do it via the command language " (http://www.hsph.harvard.edu/cgi-bin/lwgate/STATALIST/archives/statalist.0904/date/article-818.html) . This can be done by fixing the size of the graphs with the -fxsize()- option (-help graph combine-) since the graphs will be of unequal size due to the labels of the first graph. Example: clear all sysuse auto set scheme lean1 egen PriceCat=cut(price), at(3000 6000 16000) graph hbox turn if P == 3000, over(head) over(fore) fxsize(100) ytitle("") t1(3000) name(gr2,replace) graph hbox turn if P == 6000, over(head, label(nolabel)) over(fore,label(nolabel)) ytitle("") fxsize(75) t1(6000) name(gr3,replace) graph combine gr2 gr3, row(1) imargin(zero) b1(Turn Circle(ft.)) Scott On Sun, May 3, 2009 at 9:56 AM, Jacob Wegelin <[email protected]> wrote: > Dear Scott: > > Thank you for this solution. But does the graph editor generate text > commands that I can retrieve and put into a do-file, the same way that > Stata's point-and-click interface generates text commands? > > How did you discover the - gr_edit - commands that you provide below? > - help gr_edit - produces nothing in Stata 10.1 for Macintosh. > > Jake > * * 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**:**Re: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)***From:*Jacob Wegelin <[email protected]>

- Prev by Date:
**Re: st: RE: [iso-8859-1] Fisher�s exact test for rxc [2X2] tables: one-tailed or two-tailed[iso-8859-1] [iso-8859-1] ?** - Next by Date:
**st: weighted population size smaller than sample size?** - Previous by thread:
**AW: st: graph hbox Y, by(something noiyaxes) over(grp2) over(grp1)** - Next by thread:
**st: RE: Re: turning numbers into dates** - Index(es):

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