Как убрать фоновый сюжет в plot_model - PullRequest
0 голосов
/ 18 апреля 2020

Можно ли удалить цвет фона и сетки в функции plot_model enter image description here

plot_model(mod, type="pred", show.p = TRUE, axis.title = "Ancho (m)", title = "")

и как я могу изменить размер и шрифт надписей?

1 Ответ

0 голосов
/ 18 апреля 2020

Вы можете использовать следующий код

library(sjPlot)
library(ggplot2)

mod <- glm(mpg ~ wt, data = mtcars)

set_theme(base = theme_classic(), #To remove the background color and the grids
          theme.font = 'serif',   #To change the font type
          axis.title.size = 2.0,  #To change axis title size
          axis.textsize.x = 1.5,  #To change x axis text size
          axis.textsize.y = 1.5)  #To change y axis text size

plot_model(mod, type="pred", show.p = TRUE, axis.title = "Ancho (m)", title = "")

enter image description here

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...