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

Re: st: Changing Y axis on KM Survival Graphs


From   [email protected] (Jeff Pitblado, Stata Corp.)
To   [email protected]
Subject   Re: st: Changing Y axis on KM Survival Graphs
Date   Mon, 08 Sep 2003 09:58:24 -0500

Fultz, Shawn <[email protected]> asks about controlling the Y-axis when
plotting Kaplan-Meier survivor functions:

> With Stata's version 7, I was able to limit the range of the Y axis to only
> show the range of the data (Survival from 1 to 0.7 in this case) by adding
> the 'yasis' option. This seems to have been removed from version 8.  In the
> manuals I can find a way to make the Y axis cover a larger range, but not a
> smaller one.
> 
> Any help?

The Stata 8 equivalent to -yasis- is -ylabel(minmax)-.  For example, using the
data from the first example in [ST] sts, the following commands

	. clear
	. use http://www.stata-press.com/data/r8/stan3
	. sts graph, ylabel(minmax)

will produce a KM survivor graph where the Y-axis is restricted to the range
of the plotted Y values.

--Jeff
[email protected]
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index