[英]Adjust font size in rms:::plot.anova.rms
I am using the rms package for logistic regression using the example titanic dataset, plot()
on an anova
object can produce a figure like the following我正在使用 rms 包进行逻辑回归,使用示例 Titanic 数据集,
anova
对象上的plot()
可以生成如下图
My question is how can I make the text in the plot smaller (column names, chisquare statistic, p-values), I checked the internal function rms:::plot.anova.rms
and see no such arguments.我的问题是如何使图中的文本更小(列名、卡方统计量、p 值),我检查了内部函数
rms:::plot.anova.rms
并没有看到这样的参数。
I don't have access to the titanic dataset, so here is a reproducible example using iris
:我无权访问 Titanic 数据集,因此这里是一个使用
iris
的可重现示例:
library(rms)
iris2 <- within(iris, Sepal.Length <- Sepal.Length > 5.5)
model <- Glm(DF2formula(iris2), data = iris2, family = binomial)
plot(anova(model))
The function rms:::plot.anova.rms
contains an ellipsis for passing arguments on to plot
.函数
rms:::plot.anova.rms
包含一个省略号,用于将参数传递给plot
。 Therefore, even though it is not a named argument, you can pass cex
to control the text size:因此,即使它不是命名参数,您也可以通过
cex
来控制文本大小:
plot(anova(model), cex = 0.7)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.