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/