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
0 answers

How to load the package {sjPlot} in R?

There's an older post from a year ago, here, that touches upon a similar issue. Now I'm facing almost axactly the same issue as Bikash was approximately a year ago. However, the solution suggested there, does not seem to work in my case. The error…
Dr. Fabian Habersack
  • 1,111
  • 12
  • 30
0
votes
1 answer

Adapting the meansd moderator option in sjPlot interaction

I am using sjPlot, the sjp.int function, to plot an interaction of an lme. The options for the moderator values are means +/- sd, quartiles, all, max/min. Is there a way to plot the mean +/- 2sd? Typically it would be like this: model <-…
user6121484
  • 143
  • 2
  • 15
0
votes
0 answers

how to use the factanal and sjt.pca command in R?

Thanks to everyone for reading my question. i am trying to understand the principal component analysis using R. I use this example, the same which appear in factanal() documentation First, i create my variables: v1 <-…
Victor Espinoza
  • 318
  • 1
  • 9
0
votes
0 answers

using variable label in sjt.df command inside sjPlot package?

considering the use of variable labels in sjmisc or sjplot package, i just want to know how can i use the variable labels that i can set with the set_label() command in the sjt.df() command. This is an…
Victor Espinoza
  • 318
  • 1
  • 9
0
votes
1 answer

sjt.grpmean results inside sjPlot are not correctly displayed

I have a problem with sjPlot command: sjt.grpmean This is my example: x <- rnorm(120,1230,220) f <- c(rep("men",60),rep("women",60)) d <- data.frame(x,f) library(sjPlot) sjt.grpmean(var.cnt = d$x, var.grp = d$f) The result is just…
Victor Espinoza
  • 318
  • 1
  • 9
0
votes
1 answer

how to use value.labels in sjt.frq command inside sjPlot library?

Hi to everyone my question is about the use of this parameter. A quick example: x <- c(1,1,1,1,2,2,2,2,1,1,1,1,1,2,2) for this example 1 = yes and 2 = No, then: sjt.frq(x, value.labels = c("yes","no")) But the result is not showing me the…
Victor Espinoza
  • 318
  • 1
  • 9
0
votes
0 answers

sjplot's xtabs function gives error when trying to produce crosstabulation table

I've downloaded the lastest version of sjplot and sjmisc. They aren't working correctly: I am unable to produce a simple crosstable of two variables: sjt.xtab (mydataset$gender, mydateset$age) Error: 'table_values' is not an exported object from…
0
votes
0 answers

Plot generated with sjp.xtab function from package sjPlot (R) has weird value label positions... How to get it right?

I have been trying to use sjp.xtab to do some proportional stacked bar plots (with flipped coordinates) but I have had some trouble. I get the value labels in weird places (instead of in the middle of the stacked bars), and I would also like to…
0
votes
2 answers

R: How do I make a nice results table (sjPlot) from the lapply output of several GLMs?

Dear Stackoverflow community I’m working on a study in R where I’m doing several binomial logistic regressions with different dependents. These analyses are done repeatedly with minor changes, and I’m sharing the results with my co-workers,…
TAH
  • 1
  • 1
0
votes
2 answers

Changing line colors and types of a spj.glmer probability plots of covariates by group

I am trying to plot the interaction between a fixed effect and random factor. sjPlot seems like a good package for this, but I am having trouble changing the line types and colors. I would like the change the line colors to a gray-scale scheme with…
Jason
  • 3
  • 1
0
votes
1 answer

Plotting fixed effects slope from lmer model

I have the following dataset : > dput(df) structure(list(Subject = c(1L, 2L, 3L, 5L, 6L, 6L, 6L, 7L, 7L, 7L, 8L, 8L, 8L, 9L, 9L, 9L, 10L, 10L, 11L, 11L, 11L, 12L, 12L, 13L, 13L, 14L, 14L, 15L, 15L, 16L, 16L, 16L, 17L, 17L, 17L, 18L, 18L,…
A. Oye
  • 3
  • 3
0
votes
1 answer

Plotting lmer model without covariance matrix

I am trying to plot a number of lmer models for a paper. I had to simplify the random effect structure by dropping the correlation between the random slopes and intercept (Barr et al., 2013). However, when I try to plot using the sjp.lmer funtion, I…
A. Oye
  • 3
  • 3
0
votes
1 answer

sjp.frq - different colors for bars in r

I am preparing series of plots, using sjPlot package. For simple frequencies presentation I use sjp.frq. I would like to use different colors for each bar. I found the option to choose color but it works only for whole series: the switch geom.colors…
Maciej B.
  • 373
  • 1
  • 4
  • 13
0
votes
0 answers

Using sjp.glm to plot predicted probabilities for 1 predictor at 1 time

I am able to generate desired plots using the following codes: sjp.glm(fit,type="prob") sjp.glm(fit,type="eff") sjp.glm(fit,type="y.pc") However, I will like to plot the graphs separately instead of all in one. I've tried arguments like var, vars,…
Ivan
  • 163
  • 1
  • 3
  • 15
0
votes
1 answer

Using sjPlot in R to carry out wilcoxon-mann whitney on a factor variable

I have two variables I want to compare: one containing a variable on age (continuous) and one containing a variable on stroke status (did or did not have stroke, factor). I can do this happily using wilcox.test…
Ross M
  • 95
  • 1
  • 8
1 2 3
18
19