Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Re: iMultiple graphs in Stata 8


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Re: iMultiple graphs in Stata 8
Date   Wed, 5 Feb 2003 13:50:58 -0000

Ricardo Ovaldia, MS 
 
> -combine- before my first
> post and got an error:
> . webuse auto
> (1978 Automobile Data)
> 
> . graph  twoway scatter mpg price, saving(g1,replace)
> (file g1.gph saved)
> 
> . graph  twoway scatter mpg  weight,
> saving(g2,replace)
> (file g2.gph saved)
> 
> . graph combine g1 g2
> g1 is not a memory graph
> invalid syntax
> invalid syntax
> r(198);
> 
> However, I just did it again except I included the
> -gph- extension and that work.
> 
> So:
> 
>    -graph combine g1 g2-    does not work 
> 
> but 
>    -graph combine g1.gph g2.gph-  does work.
> 
> Is this a bug? Shouldn't it always work?

It's not a bug. 

Stata can store graphs 
in memory and Stata can save graphs 
to a file of your specification. That is 
not one and the same thing, but 
different things. 

It is the difference, in particular, between the result 
of name() and that of saving(). 

The on-line help explains the different 
syntaxes arising. 

Nick 
n.j.cox@durham.ac.uk 
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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