简体   繁体   中英

Change name in axis x label plot_model

How can I change the name in the x label? for=cicatriz to= Cicatríz umbilical

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

plot_model(mod_plasmacic, type="pred", show.p = TRUE, axis.title = (expression(paste(delta^{13}, "C(‰)"))), title = "")

enter image description here

You can use the following code

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 = 1.5,  #To change axis title size
          axis.textsize.x = 1.2,  #To change x axis text size
          axis.textsize.y = 1.2)  #To change y axis text size

plot_model(mod, type="pred", show.p = TRUE, axis.title = c("Cicatríz umbilical",expression(paste(delta^{13}, "C(‰)"))), title = "")

在此处输入图像描述

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