Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: displaying only one legend with -graph combine-


From   Nick Winter <nwinter@virginia.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: displaying only one legend with -graph combine-
Date   Thu, 18 Sep 2008 13:39:18 -0400

-findit grc1leg- will turn up Vince Wiggins' cryptically-named -grc1leg- program (GRaph Combine 1 LEGend), which does exactly what you want.

--Nick Winter

Michael McCulloch wrote:

Greetings,
With the following combined graph, built based on suggestions by Maarten Buis, is it possible to display the legend only once, instead of twice where it appears under both sub-graphs?

sysuse cancer.dta, clear
stset studytime, failure(died)
sts graph if age < 55, by(drug) title("Young", box bfcolor(white)) saving("young", replace )
sts graph if age >= 55, by(drug) title("Old", box bfcolor(white)) saving("old", replace )
graph combine young.gph old.gph, rows(2) cols(2) iscale(0.5) title(Survival by Age Group)


--
--------------------------------------------------------------
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  nwinter@virginia.edu e
University of Virginia          faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

*
*   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/



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