[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: RE: added graph feature: solution??
This is the issue that Fred Wolfe and I batted back
and forth, although some of the discussion was
guessing in the dark before -gs_fileinfo- was remembered.
The key point as I understand it is that the command Stata's graph
internals received, which was not what you typed, is to be
interpreted with reference to the serset associated with the graph.
> on 03/08/2004 18:30, Nick Cox at firstname.lastname@example.org wrote:
> > A few days ago, I pointed someone to
> > the -undocumented- options in this area.
> > Following that lead,
> > . gs_fileinfo <whatever>.gph
> > returns this information in r(command)
> > etc.
> We're almost there. I tried this, and got the following
> . gs_fileinfo "/Users/ronanconroy/Documents/Consult files/Richard
> . di r(command)
> twoway (line __00000H __00000I _t, sort connect(J ...)
> grid) ytitle(`""') x
> > title(`"analysis time"') pstyle( p1 p2)
> title(`"Kaplan-Meier survival
> estimates, by FVC"' `"
> > "') legend(order(1 2)) yscale( ) ytitle(Proportion surv
> There is an obvious problem: the graph (A Kaplan-Meier) is
> described in
> terms of the variables that Stata calculated, and the
> underlying command
> (-twoway-) not the original command syntax that I used (-sts graph-).
> However, the other information returned is very useful
> indeed. So much so
> that I am surprised that Stata doesn't have a menu item
> saying 'get graph
> info' rather than an undocumented command!
> With a little modification, however, it is clear that Stata
> could capture,
> verbatim, the command used to generate a graph. What it
> captures right now
> is maddeningly close...
* For searches and help try: