2016-11-23 70 views
-1

我的代码如下:如何修改stcurve的绘图格式?

use http://www.ats.ucla.edu/stat/data/uis.dta, clear 
    stset time, failure(censor) 
    streg , dist(weibull) 
    stcurve, hazard 

我正在寻找一种方式stcurve个性化输出情节的格式。例如,如何更改浅蓝色的背景颜色,标签,字体大小和标题?

+0

在我看来太开放。这是要求一个Stata图形很大一部分的个人教程! –

+0

这里是一个教程http://data.princeton.edu/stata/graphics.html – timat

+0

@NickCox对不起,一般的问题。我是Stata新手。 – Milad

回答

2

你可以先在help stcurve:有是help twoway_options 所有的链接是存在的。

对于字体,看到的Stata手册here

这里你问一个例子:

use http://www.ats.ucla.edu/stat/data/uis.dta, clear 
stset time, failure(censor) 
streg , dist(weibull) 

graph set window fontface "Times New Roman" 
#delimit ; 
stcurve, hazard 
title("new title") 
graphregion(color(white) icolor(white)) 
plotregion(color(white) icolor(white)) 
ytitle("Y title",size(3.5)) 
xtitle("X title",size(3.5)) ; 
#delimit cr 
+0

谢谢你的回答,这真的很有帮助 – Milad