Bookmark and Share

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

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

st: RE: Single graph from multiple datasets or memory

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


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 Radwin
Senior Research Associate
Education and Workforce Development Division
RTI International
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-665-8274

> -----Original Message-----
> From: [mailto:owner-
>] On Behalf Of Kumar, Supriya
> Sent: Thursday, October 03, 2013 9:26 AM
> To:
> 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:

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