简体   繁体   中英

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

在此处输入图片说明

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.

I don't have access to the titanic dataset, so here is a reproducible example using 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 . Therefore, even though it is not a named argument, you can pass cex to control the text size:

plot(anova(model), cex = 0.7)

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM