Questions tagged [sjplot]

sjPlot is a collection of several plotting and table output functions for data visualization o R.

About

Its a collection of several plotting and table output functions for data visualization. Results of several statistical analyses (that are commonly used in social sciences) can be visualized using this package, including simple and cross tabulated frequencies, histograms, box plots, (generalized) linear models (forest plots), PCA, correlations, cluster analyses, scatter plots etc.

Links

280 questions
0
votes
1 answer

r Graphs showing different results

I've been using sjplot to graph model outputs of binary data which have been going great so far. However, when I attempt graph the results of the probability of error of each sex, I get different visual results when I use two different scripts using…
0
votes
0 answers

How do I get unscaled version of parameter for my interaction model on GLMM using plot_model?

I am looking at camera trap data to study drivers of illegal human activities in the central Vietnam. I made a GLMM model to see the impact of species number and remotessess on the number of human records at each camera trap stations. I used the…
0
votes
0 answers

exp transform on both x and y axis in sjPlot and Effects packages

I have log transformed an offset in a glmmtmb model, i have also log transformed some covariates within the model. As a result i need to back-transform in my correlation coefficients but can't seem to achieve the desired effect in sjPlot or the…
0
votes
1 answer

plot_model() keeps returning NULL in theme features

I am making use of the plot_model() predictive function for a multiple linear regression and am not able to modify aesthetics. I have read both that it is a part of the sjplot package as well as a wrapper for ggplot. While I have gotten pretty…
lisaohhh
  • 3
  • 2
0
votes
0 answers

Is there a simple solution for plotting the interaction effect from a class RMA or RMA.MV?

I have used the rma.mv() function from the 'metafor' package. Now I would like to plot the interaction effects. I have tried various solutions and the one that seems closest is the plot_model function from package 'sjPlot'. This will work when I do…
Dustin
  • 183
  • 7
0
votes
0 answers

Using sjplot to create separate mini graphs and arrange them

How do I unstack a plot in sjplot? I have a 5-category variable in my interaction term and I want a cluster of 5 mini graphs arranged in order for the figure (one graph for each category of that variable). The graph is stacked right now.
0
votes
1 answer

How to break down colour variable in sjPlot::plot_model into equally-sized bins

Whereas the direction of main effects can be interpreted from the sign of the estimate, the interpretation of interaction effects often requires plots. This task is facilitated by the R package sjPlot. For instance, using the plot_model function, I…
Pablo Bernabeu
  • 402
  • 4
  • 23
0
votes
1 answer

How to map more informative values onto fill argument of sjPlot::plot_model

Whereas the direction of main effects can be interpreted from the sign of the estimate, the interpretation of interaction effects often requires plots. This task is facilitated by the R package sjPlot. For instance, using the plot_model function, I…
Pablo Bernabeu
  • 402
  • 4
  • 23
0
votes
1 answer

How can I change the order of facets in plot_model without changing the underlying data?

I have a predicted marginal effects plot made with plot_model from sjPlot, displaying the predictions at selected levels of the variable height which I named to clarify they are -1 SD, mean, and +1 SD, respectively. Unfortunately, due to…
0
votes
0 answers

How can I change labels from sj_plot?

enter image description here Can anybody tell me how to change the labels from "cntry (Intercept)" and "lrscale"? I have been trying for hours and can't fix it. I tried different approaches from ggplot and baseR, nothing worked.
0
votes
0 answers

How to increase font size of bar labels in sjPlot package

With the plot_xtab() function from sjPlot package I can plot percentages of gear inside of every cyl as stacked bar plots: library(sjPlot) plot_xtab( x = mtcars$gear, grp = mtcars$cyl, margin = "row", bar.pos = "stack", show.summary =…
TarJae
  • 72,363
  • 6
  • 19
  • 66
0
votes
1 answer

Change the vline thickness and font sizes of sjPlot::plot_model() output

I am trying to change the aesthetics of my plot_model() graph and am struggling. Specifically, I'd like to: Make the 1:1 line (vline?) thicker Increase the font size of the labels Current graph output when using the code below: Here is the code I…
b786
  • 3
  • 3
0
votes
0 answers

Why can I not use sjp.glm for plotting log odds for my glmm? Is there any alternative for it?

I tried using sjp.glm to plot my log odds but I saw that that the function was removed according to this page https://github.com/strengejacke/sjPlot/releases. Is there any alternative I could use? I want to graph individual log odds for all…
0
votes
1 answer

plot estimates with 95%CI from lmer model

I need help in plotting the estimates and 95% CI from Lmer model, i am using plot_model from sjplot function. library(lme4) # linear mixed-effects models library(lmerTest) # test for linear mixed-effects…
skpak
  • 79
  • 6
0
votes
3 answers

Including a jump from 0 to 1500 in my y-axis

I want to include a jump in my plot. Thy y-axis should start from 0 but the there should be a break which goes to 1500 and from there in 100 unit increments up to 2000. This works in my code, but the space between 0 and 1500 is still expanded, and i…
JanSch
  • 3
  • 3