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, PCA and correlation matrices, cluster analyses, scatter plots, Likert scales, effects plots of interaction terms in regression models, constructing index or score variables and much more.
To install the latest development snapshot (see latest changes below), type following commands into the R console:
library(devtools)
devtools::install_github("sjPlot/devel")
Please note that the latest development snapshot most likely depends on the latest build of the sjmisc-package, so you probably want to install it as well:
devtools::install_github("sjPlot/sjmisc")
To install the latest stable release from CRAN, type following command into the R console:
install.packages("sjPlot")
In case you want / have to cite my package, please use citation('sjPlot')
for citation information. Since core functionality of package depends on the ggplot-package, consider citing this package as well.
- Fixed many issues related to the latest update of ggplot2.
- Argument
show.se
is now deprecated. Useshow.ci
instead. - Redesign of computation of frequency tables for
sjp.frq
andsjt.frq
, being more robust and generally working with labelled, non-labelled, numeric, character vectors and factors. - Redesign of computation of frequency tables for
sjp.grpfrq
andsjt.xtab
, being more robust and generally working with labelled, non-labelled, numeric, character vectors and factors. - Better automatic handling of variable and value labels that are used for labelling plot axes and titles or table columns.
sjp.lm
gets agroup.estimates
argument to group estimates in forest plots and colour them according to group assignment. Use argumentsshow.legend
andlegendTitle
to modify group legend.sjp.lmer
andsjp.glmer
can now plot random effect parts of random slope-intercept models (withtype = "rs.ri"
), where regression lines or predicted probabilities of random intercept and slopes are plotted.- Intercept line plotting in
sjp.int
fortype = "cond"
was removed. - Line geoms for
type = "cond"
insjp.int
now always start at y-position zero, to better indicate the effective change of interaction effect compared to base reference. Now, the y-position indicates the change in the reponse due to the interaction effect. sjp.int
gets ageom.size
argument to specify line width.
- Argument
ci.hyphen
in functionsjt.lm
andsjt.lmer
was not correctly applied to confidence intervals of standardized beta values.