Stata如何在条形图和点图里为分类变量加标签?
安装的Stata命令如下: net describe gr0034, from(http://www.stata-journal.com/software/sj8-2) net install gr0034.pkg, replace net get gr0034.pkg, replace help labmask help seqvar
with Stata
安装的Stata命令如下: net describe gr0034, from(http://www.stata-journal.com/software/sj8-2) net install gr0034.pkg, replace net get gr0034.pkg, replace help labmask help seqvar
信息图(Infographic=Information+Graphic)是信息的视觉表示,它使用图像模式来帮助读者了解信息之间的相互关系,通过鼓励视觉比较来工作。 下载字体Mixed Bag 2 Font,信息如下: 浏览地址https://www.fontspace.com/mixed-bag-2-font-f5931 下载地址https://www.fontspace.com/get/family/zqo1 ...
生成上图的Stata命令如下: * Figure: Horizontal bar plot with grouping of variables, standard error bars, and cross-group comparisons * Replication file for: * Satyanarayana S, Kwan A, Daniels B, Subbaraman R, McDowell A, Bergkvist S, Das RK, Das V, Das J, Pai M. * Use of stand...
生成上图的Stata代码如下: * Figure: horizontal stack bar plot global graph_opts1 /// title(, justification(left) color(black) span pos(11)) /// graphregion(color(white) lc(white) la(center)) ///
生成上图的Stata代码如下: * Figure:Side by side horizontal bar plot (Outcomes by City & Case) using weightab global graph_opts /// title(, justification(left) color(black) span pos(11)) /// graphregion(color(white) lc(white) lw(med) la(center)) ///
* Replication file for: * Satyanarayana S, Kwan A, Daniels B, Subbaraman R, McDowell A, Bergkvist S, Das RK, Das V, Das J, Pai M. * Use of standardised patients to assess antibiotic dispensing for tuberculosis by pharmacies in urban India: * A cross-sectional study. * The Lanc...
* Figure: combined bar plots with two axes * Load data * --------- use "http://ds.epiman.cn/uploads/2022/06/bar-two-axes.dta", clear * Adjust variable for bar position gen x = int1mo+.5 * Create individual graphs * ------------------------ foreach foodGroup in animal fruit gra...
Replication file for: Satyanarayana S, Kwan A, Daniels B, Subbaraman R, McDowell A, Bergkvist S, Das RK, Das V, Das J, Pai M. Use of standardised patients to assess antibiotic dispensing for tuberculosis by pharmacies in urban India: A cross-sectional study. The Lancet Infecti...
比如,我们想直观地看孕期吸烟者者和非吸烟者两组新生儿的出生体重是否有差异,可以通过Stata社区命令betterbar实现。 Stata命令如下: /*读取演示数据*/ webuse lbw /*绘制误差条形图,用前需先安装,如ssc install betterbar,详见文末*/ betterbar bwt, over(smoke) ci 上图是最基本的,默认是水...
* Figure: Horizontal bar with multiple variables global graph_opts /// title(, justification(left) /// color(black) span pos(11)) /// graphregion(color(white)) /// ylab(,angle(0) nogrid) /// xtit(,placement(left) justification(left)) /// yscale(noline) xscale(noline) /// legen...