|
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: displaying only one legend with -graph combine-
From |
Michael McCulloch <[email protected]> |
To |
Statalist <[email protected]> |
Subject |
st: displaying only one legend with -graph combine- |
Date |
Thu, 18 Sep 2008 10:04:03 -0700 |
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)
--
Best wishes,
Michael McCulloch
Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
[email protected]
www.pinestreetfoundation.org
*
* 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/