Skip to contents

Package Description

sjPlot-package sjPlot
Data Visualization for Statistics in Social Science

Plotting Regression Models

plot_model() get_model_data()
Plot regression models
plot_models()
Forest plot of multiple regression models

Regression Model Tables

tab_model()
Print regression models as HTML table

Plotting Regression Model Diagnostics

plot_kfold_cv()
Plot model fit from k-fold cross-validation
plot_model() get_model_data()
Plot regression models
plot_residuals()
Plot predicted values and their residuals
sjp.poly()
Plot polynomials for (generalized) linear regression

Plotting Descriptive Statistics

plot_frq()
Plot frequencies of variables
plot_gpt()
Plot grouped proportional tables
plot_likert()
Plot likert scales as centered stacked bars
plot_scatter()
Plot (grouped) scatter plots
plot_stackfrq()
Plot stacked proportional bars
plot_grpfrq()
Plot grouped or stacked frequencies
plot_xtab()
Plot contingency tables
sjp.chi2()
Plot Pearson's Chi2-Test of multiple contingency tables
sjp.aov1()
Plot One-Way-Anova tables
sjp.corr()
Plot correlation matrix
sjplot() sjtab()
Wrapper to create plots and tables within a pipe-workflow

Descriptive Statistics Tables

tab_stackfrq()
Summary of stacked frequencies as HTML table
tab_xtab() sjt.xtab()
Summary of contingency tables as HTML table
tab_corr()
Summary of correlations as HTML table

Generate Tables from Data Frames, Codebooks

tab_df() tab_dfs()
Print data frames as HTML table.
view_df()
View structure of labelled data frames

Variable/Feature Reduction

tab_fa()
Summary of factor analysis as HTML table
tab_pca()
Summary of principal component analysis as HTML table
tab_itemscale() sjt.itemanalysis()
Summary of item analysis of an item scale as HTML table

Plot Customization

Plot Distributions

dist_chisq()
Plot chi-squared distributions
dist_f()
Plot F distributions
dist_norm()
Plot normal distributions
dist_t()
Plot t-distributions

Utility Functions

plot_grid()
Arrange list of plots as grid
save_plot()
Save ggplot-figure for print publication

Example Data

efc
Sample dataset from the EUROFAMCARE project
save_plot()
Save ggplot-figure for print publication