更改图例文本大小系数图

Changing legend text size coefplot

我正在研究 coefplot,我想将标签的图例大小重新调整为 vsmall。但是,当我使用 labsize(vsmall) 时。我得到一个错误。我是否错过了 coefplot 中的特定步骤?

coefplot weight height, xtitle(Medical Records) ytitle(Share) ///
vertical recast(bar) barwidth(0.15) finten(60)  plotlabels("male" "female" "child"   ///
"adult", labsize(vsmall)) graphregion(color(white)) bgcolor(white)

谢谢。

您需要从命令中完全删除 labsize(vsmall),并将 legend(size(vsmall)) 作为选项添加到命令的末尾。您的最终命令应如下所示:

coefplot weight height, xtitle(Medical Records) ytitle(Share) vertical recast(bar) barwidth(0.15) finten(60) plotlabels("male" "female" "child" "adult") graphregion(color(white)) bgcolor(white) legend(size(vsmall))