Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: RE: Single graph from multiple datasets or memory


From   "Radwin, David" <[email protected]>
To   <[email protected]>
Subject   st: RE: Single graph from multiple datasets or memory
Date   Thu, 3 Oct 2013 12:49:05 -0400

Supriya,

I can't think of how to do that, but you could -append- the second dataset to the first dataset. Here is a silly example:


sysuse nlsw88

tempfile x

save `x'

sysuse auto

append using `x'

twoway (scatter price length) (scatter hours tenure)



David
--
David Radwin
Senior Research Associate
Education and Workforce Development Division
RTI International
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-665-8274

www.rti.org


> -----Original Message-----
> From: [email protected] [mailto:owner-
> [email protected]] On Behalf Of Kumar, Supriya
> Sent: Thursday, October 03, 2013 9:26 AM
> To: [email protected]
> Subject: st: Single graph from multiple datasets or memory
> 
> Hi,
> I'm trying to create a single plot, overlaid (so graph combine does not
> appear to work), with data drawn from two separate datasets. Is there a
> way to either create such a graph, using two datasets in the twoway
> command or by using graphs saved in memory?
> 
> Thanks.
> Supriya.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index