Package: sjPlot 2.9.0

Daniel Lüdecke

sjPlot: Data Visualization for Statistics in Social Science

Collection of plotting and table output functions for data visualization. Results of various 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, mixed effects models, principal component analysis and correlation matrices, cluster analyses, scatter plots, stacked scales, effects plots of regression models (including interaction terms) and much more. This package supports labelled data.

Authors:Daniel Lüdecke [aut, cre], Alexander Bartel [ctb], Carsten Schwemmer [ctb], Chuck Powell [ctb], Amir Djalovski [ctb], Johannes Titz [ctb]

sjPlot_2.9.0.tar.gz
sjPlot_2.9.0.zip(r-4.7)sjPlot_2.9.0.zip(r-4.6)sjPlot_2.9.0.zip(r-4.5)
sjPlot_2.9.0.tgz(r-4.6-any)sjPlot_2.9.0.tgz(r-4.5-any)
sjPlot_2.9.0.tar.gz(r-4.7-any)sjPlot_2.9.0.tar.gz(r-4.6-any)
sjPlot_2.9.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
sjPlot/json (API)

# Install 'sjPlot' in R:
install.packages('sjPlot', repos = c('https://ar-puuk.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/strengejacke/sjplot/issues

Pkgdown/docs site:https://strengejacke.github.io

Datasets:
  • efc - Sample dataset from the EUROFAMCARE project

On CRAN:

Conda:

data-visualizationplottingsocial-sciencesstatistics

15.11 score 646 stars 2 packages 11k scripts 25k downloads 133 mentions 46 exports 49 dependencies

Last updated from:d95ebad634. Checks:9 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK243
source / vignettesOK357
linux-release-x86_64OK232
macos-release-arm64OK135
macos-oldrel-arm64OK156
windows-develOK163
windows-releaseOK166
windows-oldrelOK168
wasm-releaseOK211

Exports:css_themedist_chisqdist_fdist_normdist_tfont_sizeget_model_datalabel_anglelegend_styleplot_frqplot_gptplot_gridplot_grpfrqplot_likertplot_modelplot_modelsplot_residualsplot_scatterplot_stackfrqplot_xtabsave_plotscale_color_sjplotscale_fill_sjplotset_themeshow_sjplot_palssjp.chi2sjp.polysjplotsjplot_palsjt.itemanalysissjt.xtabsjtabtab_corrtab_dftab_dfstab_fatab_itemscaletab_modeltab_pcatab_stackfrqtab_xtabtheme_538theme_blanktheme_sjplottheme_sjplot2view_df

Dependencies:bayestestRclicpp11datawizarddplyreffectsizeevaluatefarvergenericsggeffectsggplot2gluegtablehighrinsightisobandknitrlabelinglatticelifecyclemagrittrMatrixparametersperformancepillarpkgconfigpurrrR6rbibutilsRColorBrewerRdpackreformulasrlangS7scalessjlabelledsjmiscsjstatsstringistringrtibbletidyrtidyselectutf8vctrsviridisLitewithrxfunyaml

Black & White Figures for Print Journals
Barplots in grey-scaled colors | Lineplots in b/w with different linetypes

Last update: 2025-07-10
Started: 2017-02-05

Customize Plot Appearance
Tweaking plot appearance | Using the Color Brewer palettes | Plot with flipped coordinates | Adding plot margins | Theme options | Pre-defined themes | Pre-defined scales | Set up own themes based on existing themes | Further customization options | Plot legend

Last update: 2025-07-10
Started: 2017-02-03

Item Analysis of a Scale or an Index
Performing an item analysis of a scale or index | Index score with one component | Index score with more than one component | Adding further statistics

Last update: 2025-07-10
Started: 2017-02-03

Plotting Estimates (Fixed Effects) of Regression Models
Fitting a logistic regression model | Plotting estimates of generalized linear models | Sorting estimates | Estimates on the untransformed scale | Showing value labels | Labelling the plot | Pick or remove specific terms from plot | Standardized estimates | Bayesian models (fitted with Stan) | Tweaking plot appearance | References

Last update: 2025-07-10
Started: 2017-10-06

Plotting Likert Scales

Last update: 2025-07-10
Started: 2019-06-26

Plotting Marginal Effects of Regression Models
Marginal effects | Marginal effects for different groups | Marginal effects at specific values or levels | Polynomial terms and splines | Different constant values for factors | Interaction terms

Last update: 2025-07-10
Started: 2018-01-22

Summary of Bayesian Models as HTML Table
Bayesian models summaries as HTML table | Multivariate response models | Show two Credible Interval-column | Mixing multivariate and univariate response models

Last update: 2023-03-31
Started: 2018-07-09

Plotting Interaction Effects of Regression Models
Two-Way-Interactions | Three-Way-Interactions | References

Last update: 2023-03-13
Started: 2018-01-22

Robust Estimation of Standard Errors, Confidence Intervals and p-values
Classical Regression Models | Robust Covariance Matrix Estimation from Model Parameters | Cluster-Robust Covariance Matrix Estimation (sandwich) | Cluster-Robust Covariance Matrix Estimation (clubSandwich) | Robust Covariance Matrix Estimation on Standardized Model Parameters | Mixed Models | Robust Covariance Matrix Estimation for Mixed Models | Robust Covariance Matrix Estimation on Standardized Mixed Model Parameters

Last update: 2022-04-05
Started: 2020-05-08

Summary of Regression Models as HTML Table
A simple HTML table from regression results | Automatic labelling | Turn off automatic labelling | More than one model | Generalized linear models | Untransformed estimates on the linear scale | More complex models | Show or hide further columns | Adding columns | Removing columns | Removing and sorting columns | Collapsing columns | Defining own labels | Including reference level of categorical predictors | Style of p-values | Automatic matching for named vectors | Keep or remove coefficients from the table

Last update: 2021-07-10
Started: 2018-07-09

Customizing HTML tables
Copying table output to office or word processors | Export table as HTML file to open in word processors | Drag and drop from browser or RStudio viewer pane | Customizing table output with the CSS parameter | Retrieving customizable styles | Pre-defined Table-Layouts

Last update: 2020-05-23
Started: 2018-07-09

Summary of Mixed Models as HTML Table
Mixed models summaries as HTML table | Generalized linear mixed models | More complex models | References

Last update: 2020-01-22
Started: 2018-07-09

Readme and manuals

Help Manual

Help pageTopics
Data Visualization for Statistics in Social SciencesjPlot-package sjPlot
Plot chi-squared distributionsdist_chisq
Plot F distributionsdist_f
Plot normal distributionsdist_norm
Plot t-distributionsdist_t
Sample dataset from the EUROFAMCARE projectefc
Plot frequencies of variablesplot_frq
Plot grouped proportional tablesplot_gpt
Arrange list of plots as gridplot_grid
Plot grouped or stacked frequenciesplot_grpfrq
Plot likert scales as centered stacked barsplot_likert
Plot regression modelsget_model_data plot_model
Forest plot of multiple regression modelsplot_models
Plot predicted values and their residualsplot_residuals
Plot (grouped) scatter plotsplot_scatter
Plot stacked proportional barsplot_stackfrq
Plot contingency tablesplot_xtab
Save ggplot-figure for print publicationsave_plot
Set global theme options for sjp-functionsset_theme
Plot Pearson's Chi2-Test of multiple contingency tablessjp.chi2
Plot polynomials for (generalized) linear regressionsjp.poly
Wrapper to create plots and tables within a pipe-workflowsjplot sjtab
Modify plot appearancecss_theme font_size label_angle legend_style scale_color_sjplot scale_fill_sjplot show_sjplot_pals sjPlot-themes sjplot_pal theme_538 theme_blank theme_sjplot theme_sjplot2
Summary of correlations as HTML tabletab_corr
Print data frames as HTML table.tab_df tab_dfs
Summary of factor analysis as HTML tabletab_fa
Summary of item analysis of an item scale as HTML tablesjt.itemanalysis tab_itemscale
Print regression models as HTML tabletab_model
Summary of principal component analysis as HTML tabletab_pca
Summary of stacked frequencies as HTML tabletab_stackfrq
Summary of contingency tables as HTML tablesjt.xtab tab_xtab
View structure of labelled data framesview_df