Learn R Programming

⚠️There's a newer version (2.8.17) of this package.Take me there.

sjPlot (version 1.7)

Data Visualization for Statistics in Social Science

Description

Collection of several plotting and table output functions for visualizing data, and utility functions.

Copy Link

Version

Install

install.packages('sjPlot')

Monthly Downloads

34,677

Version

1.7

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Daniel Lüdecke

Last Published

March 11th, 2015

Functions in sjPlot (1.7)

set_val_labels

Attach value labels to a variable or vector
dist_f

Plot F distributions
recode_to

Recode variable categories into new values.
dist_chisq

Plot chi-squared distributions
group_var

Recode count variables into grouped factors
group_str

Group near elements of string vectors
sjt.pca

Show principal component analysis as HTML table
chisq_gof

Performs a Chi-square goodness-of-fit-test
read_stata

Import STATA dataset as data frame into R
set_na

Set NA for specific variable values
dicho

Dichotomize variables
cronb

Calculates Cronbach's Alpha for a matrix
reliab_test

Performs a reliability test on an item scale.
mean_n

Compute row means with min amount of valid values
sjc.grpdisc

Compute a linear discriminant analysis on classified cluster groups
to_fac

Convert variable into factor and keep value labels
std_e

Compute standard error for variables
table_values

Compute expected and relative table values
sjp.lmm

Plot beta coefficients of multiple fitted lm's
sjc.kgap

Compute gap statistics for k-means-cluster
sjp.lmer

Plot estimates (forest plots) of linear mixed effects models
sjt.stackfrq

Show stacked frequencies as HTML table
dist_norm

Plot normal distributions
sj.setGeomColors

Helper function to set geom colors
sjc.cluster

Compute hierarchical or kmeans cluster analysis
read_sas

Import SAS dataset as data frame into R
read_spss

Import SPSS dataset as data frame into R
sjt.itemanalysis

Show item analysis of an item scale as HTML table
weight2

Weight a variable
weight

Weight a variable
std_beta

Retrieve std. beta coefficients and ci of lm and mixed models
to_sjPlot

Convert a haven-imported data frame to sjPlot format
sjp.int

Plot interaction effects of (generalized) linear (mixed) models
sjp.likert

Plot likert scales as centered stacked bars
sjp.glmer

Plot odds ratios (forest plots) of generalized linear mixed effects models
to_value

Converts factors to numeric variables
dist_t

Plot t-distributions
sjp.corr

Plot correlation matrix
sjp.lm

Plot linear models
sjp.scatter

Plot (grouped) scatter plots
sjt.grpmean

Show grouped means as HTML table
phi

Phi value for a contingency table
levene_test

Plot Levene-Test for One-Way-Anova
sjp.chi2

Plot Pearson's Chi2-Test of multiple contingency tables
write_spss

Write content of data frame to SPSS sav-file
cramer

Cramer's V for a contingency table
to_label

Converts variable into factor and replaces values with associated value labels
sjc.elbow

Compute elbow values of a k-means cluster analysis
sjp.pca

Plot PCA results
set_var_labels

Attach variable label(s) to a single variable or data frame
sjc.qclus

Compute quick cluster analysis
get_var_labels

Retrieve variable labels of (an SPSS-imported) data frame or of a specific variable
sjt.df

Show (description of) data frame as HTML table
sjt.frq

Show frequencies as HTML table
sjp.emm.int

Plot adjusted (estimated marginal) means of interaction (moderation) in linear models
sjp.stackfrq

Plot stacked proportional bars
adjust_plot_range

Adjust y range of ggplot-objects
mwu

Performs a Mann-Whitney-U-Test
word_wrap

Insert line breaks in long labels
sjp.xtab

Plot contingency tables
eta_sq

Retrieve eta squared of fitted anova
sjp.setTheme

Set global theme options for sjp-functions
group_labels

Create labels for recoded groups
write_stata

Write content of data frame to STATA dta-file
view_spss

View SPSS data set structure
sjt.lm

Show linear regression as HTML table
sjt.corr

Show correlations as HTML table
sjp.glmm

Plot odds ratios (forest plots) of multiple fitted glm's
sjPlot-package

Data Visualization for Statistics in Social Science
efc3

Sample dataset from the EUROFAMCARE project
str_pos

Find partial matching and close distance elements in strings
sjp.grpfrq

Plot grouped or stacked frequencies
sjp.glm

Plot odds ratios (forest plots)
mic

Computes a mean inter-item-correlation.
efc2

Sample dataset from the EUROFAMCARE project
get_val_labels

Retrieve value labels of a variable or an SPSS-imported data frame
efc

Sample dataset from the EUROFAMCARE project
sjp.aov1

Plot One-Way-Anova tables
sjt.xtab

Show contingency tables as HTML table
sjt.glm

Show (and compare) generalized linear models as HTML table
sjc.dend

Compute hierarchical cluster analysis and visualize group classification
sjp.frq

Plot frequencies of (count) variables