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
8
votes
2 answers

Changing linetype and line color with plot_model()

I am trying to create a plot of predicted values using the plot_model() function from sjPlot. I want my prediction lines to have different linetypes and different colors. The function includes a colors argument, and setting colors to bw will change…
James Martherus
  • 1,033
  • 1
  • 9
  • 20
7
votes
2 answers

Error while plotting with ggsave and other save functions

I have a problem concerning the function ggsave() and I would be really grateful for any help and or suggestions/solutions. I am creating four plots and put them all in one big plot, and since I want to loop the whole function using all columns in…
tony13s
  • 141
  • 1
  • 1
  • 6
7
votes
0 answers

Getting "lazy load database corrupt" errors in R

I have had some problems with R recently. I was trying to install nnet which seemed not to be working. I followed the advice on this question and used remove.packages () and unloadNamespace() on 'car', 'effects' and 'sjPlot'. Problems trying to…
Ross M
  • 95
  • 1
  • 8
6
votes
2 answers

regression models in r output table to word

I have been using sjplot to create a combined table. This creates a HTML table. I would like to make a table that can be exported to word. I have reviewed this post which discusses copy and pasting into word, but this alters the formatting of the…
sar
  • 182
  • 6
  • 26
6
votes
2 answers

Plotting random slopes from glmer model using sjPlot

In the past, I had used the sjp.glmer from the package sjPlot to visualize the different slopes from a generalized mixed effects model. However, with the new package, I can't figure out how to plot the individual slopes, as in the figure for the…
user44796
  • 1,053
  • 1
  • 11
  • 20
6
votes
0 answers

can't use sjPlot in R

I followed the instructions on https://strengejacke.github.io/sjPlot/ to install the package but despite downloading and installing all the packages, I can't use them because I keep getting the error message could not find function "sjP.lmer" does…
Agata
  • 343
  • 3
  • 13
5
votes
1 answer

Issue with webshot.js in R

My goal is to save a dataframe, aov output, etc. as an image that has been processed by an R packages that formats r data into scientific journal ready formats, like sjPlot. >library(sjPlot) >library(webshot) >library(tableHTML) >tab_df(df,…
ruggntub
  • 95
  • 5
5
votes
1 answer

Why `parameters::model_parameters` throws an error for negative binomial `rstanarm` model

I am trying to create a table for stan_glmer.nb (rstanarm) output, but model_parameters from the package parameters throws an odd error, that I am unsure how to solve. Perhaps this is a bug. Shortened sessionInfo() output for version info: R version…
Dylan_Gomes
  • 2,066
  • 14
  • 29
5
votes
0 answers

How to re-order labels in plot_models sjPlot

I am fitting several models and I am plotting them with sjPlot package using plot_models function. I want just to plot some of the coefficients and also reordering them to make easier to interpret. However, I have troubles in the second issue. I…
Sara
  • 185
  • 1
  • 9
4
votes
1 answer

Reordering forested model variables in sjPlot with plot_models (r)

I have a group of models that I am plotting together in R using the plot_models function from the sjPlot package. The models are plotting confidence intervals for similar felm regressions that use different datasets. All the models share the same…
flâneur
  • 633
  • 2
  • 8
4
votes
1 answer

How to change the x-axis scale in sjPlot package?

I am working with the sjPlot package. I am plotting the predicted values of a linear model similar to the following example: #R Version: 3.6.2 set.seed(1993) x <- seq(1980, 2018, 2) y <- runif(length(x), 1,100) df <-…
Sharif Amlani
  • 1,138
  • 1
  • 11
  • 25
4
votes
1 answer

Output several regression tables into multiple pages of a Word document in R

My goal is to create a multi-page Microsoft Word document with many formatted regression table outputs on consecutive pages. Ideally this would be done using R Markdown. I have had some luck making nicely formatted regression tables in word using…
Daniel Yudkin
  • 494
  • 4
  • 11
3
votes
1 answer

Change the level of the significance p values in tab_model from sjPlot (R)

I am using the tab_model function to report the results of multiple fixed effects regression. I used the argument p.style = "scientific_stars" to report the statistical significance of the results. However, the values reported are only * p<0.05 **…
flâneur
  • 633
  • 2
  • 8
3
votes
1 answer

Problem loading SjPlot after installing parameters

I'm getting the almost the same error as the previous post, but the answers there are not working for me. I was able to use sjPlot with no issues until this afternoon when I installed parameters and sandwich and clubsandwich. I don't know what else…
Larissa Cury
  • 806
  • 2
  • 11
3
votes
2 answers

How to I get tab_model to display properly in Rmarkdown PDF?

I realize this is probably quite simple, but I have looked and can't find an example of how to use sjPlot::tab_model in an Rmarkdown document sent to PDF. Here is reproducible code: --- title: "test" author: "Me" date: "2020/12/6" output:…
Pete
  • 321
  • 4
  • 16
1
2 3
18 19