plot_models()
function from library(sjPlot)
does not seem to allow label offsets apart from spacing
which make vertical adjustments. Please advise on how to prevent label cutoffs vertically and horizontally. Here is the model list object.
Herewith my code snippet you can reproduce with my data I provided above:
srplot <- plot_models(sr_models, show.values = T, show.p = T,
digits = 3, colors = 'viridis',
m.labels = c('Protected (n = 139)', 'Protected (n = 73)', 'Mosaic (n = 73)'), line.size = 0.5, dot.size = 0.5,
value.size = 2, axis.labels = c('Permanent water', 'Seasonal water', 'Infrastructure', 'Bare ground', 'Shrub', 'Tree'),
auto.label = F, title = 'a)', show.legend = T, vline.color = 'black',
transform = NULL, spacing = 1) +
theme_bw() +
theme(text = element_text(size = 12, family = 'Times New Roman'),
axis.text = element_text(colour = "black"),
axis.title.x = element_blank(),
panel.grid.minor = element_blank()) +
scale_color_grey(start = 0.6, end = 0.2)
srplot