sjPlot R-package


sjPlot has been released on CRAN! You can install the package and its dependencies using install.packages("sjPlot")!


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.

Furthermore, this package contains some tools that are useful when carrying out data analysis or interpreting data (especially intended for people coming from SPSS and who are new to R). This collection of tool functions contains, for instance, (SPSS) data set import, variable recoding and weighting, statistical tests, determination of cluster groups, interpretation of interaction terms in linear models etc.

For further details, please refer this blog post

Downloads and Installation

Download PDF manual and source from CRAN.

Use install.packages("sjPlot") to install sjPlot-package from CRAN.

The current development snapshot is hosted on Github.


sjPlot basics

Plotting functions

Table functions


Blog posts with examples of some functions

Note that, due to further development, some examples from the below listed blog posting might be out of date! Please refer to the package help (?sjp.-funcName-) for latest working examples!

sji.SPSS (Import SPSS dataset as data frame into R)

sji.viewSPSS (View imported SPSS datasets)

sjp.corr (Plot correlation matrix) (Plot estimated marginal means of ANCOVA)

sjp.frq (Plot frequencies of (count) variables)

sjp.glm (Plot odds ratios (forest plots))

sjp.glmm (compare multiple models)

sjp.grpfrq (Plot grouped or stacked frequencies)

sjp.likert (Plot likert scales as centered stacked bars)

sjp.lm (Plot beta coefficients of lm)

sjp.lmint (Plot interaction terms of linear models)

sjp.pca (Plot PCA results)

sjp.scatter (Scatter plots)

sjp.stackfrq (Plot stacked proportional bars)

sjp.xtab (Plot proportional crosstables)

sjt.corr (Print correlation tabeles)

sjt.df (Description of data frames)

sjt.frq (Print frequency tables)

sjt.glm (Print odds Ratios as HTML-Table)

sjt.lm (Print linear models as HTML-Table)

sjt.pca (Print PCA as HTML-table)

sjt.stackfrq (Print stacked frequencies and Likert scales)

sjt.xtab (Print contingency tables)

17 Gedanken zu “sjPlot R-package

  1. […] Downloads (package and manual) as well as package description are available at the package information page! […]

  2. […] like to announce the release of version 0.7 of my R package for data visualization and give a small overview of this package (download and installation […]

  3. There’s nice work here. You might want to look at GGally for similar work on quickly getting plots done with ggplot2.

  4. […] version 0.8, my package for data visualization using ggplot has been released on the Comprehensive R Archive Network (CRAN), which means you can simply install […]

  5. […] sjPlot R-package | Strenge Jacke! […]

  6. […] wrote two small functions called sjt.lm resp. sjt.glm, which are included in my sjPlot-R-package. These functions require at least one or more fitted (g)lm-objects. It’s recommended to […]

  7. […] of the following functions are available in my sjPlot-package on […]

  8. […] First of all, credits for this script must go to Ethan Brown, whose ideas for creating Likert scales like plots with ggplot built the core of the sjp.likert function in my package. […]

  9. Howdy Strenge Thanks for you great job!
    The horizontal borders in default are set as double lines in the output table. How can I change them into single lines, which are required by APA style.

    Thanks so much!


  10. Thank you for creating this package it’s so great.

  11. Hi Daniel,
    Thanks a lot for your great package. How to use ggthemr-package along with sjplots?

  12. This package is absolutely wonderful, but how can we use it to visualize results from Cox regressions, using the survival package (coxph function).

  13. That’s probably my favorite R package of the months, thanks a lot for this!
    Tables like this have been the only thing I missed in R, so I’m disturbingly excited about this.

    I hope you’ve gained enough support to improve and maintain the package, I’m hoping to recommend it to a whole bunch of people :)

Kommentar verfassen

Trage deine Daten unten ein oder klicke ein Icon um dich einzuloggen:

Du kommentierst mit Deinem Abmelden / Ändern )


Du kommentierst mit Deinem Twitter-Konto. Abmelden / Ändern )


Du kommentierst mit Deinem Facebook-Konto. Abmelden / Ändern )

Google+ photo

Du kommentierst mit Deinem Google+-Konto. Abmelden / Ändern )

Verbinde mit %s