sjPlot – data visualization for statistics (in social science) #rstats
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
I’d 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 instructions can be found on the package page).
What does this package do?
In short, the functions in this package mostly do two things:
- compute basic or advanced statistical analyses
- plot the results as ggplot-diagram
However, meanwhile the amount of functions has increased, hence you’ll also find some utility functions beside the plotting functions.
How does this package help me?
Basically, this package either helps those users…
- who have difficulties using and/or understanding all possibilities that ggplot offers to create plots, simply by providing intuitive function parameters, which allow for manipulating the appearance of plots; or
- who don’t want to set up complex ggplot-object each time from the scratch.
Furthermore, for advanced ggplot-users, the functions can return the prepared ggplot-object, which than can be manipulated even further (for instance, if you wish to specify certain parameters that cannot be modified via the sjPlot package).
What are all these functions about?
There’s a certain naming convention for the functions:
- sjc – collection of functions useful for carrying out cluster analyses
- sji – collection of functions for data import and manipulation
- sjp – collection plotting functions, the “core” of this package
- sjt – collection of function that create (HTML) table outputs (instead of ggplot-graphics
- sju – collection of statistical utility functions
Use cases?
- You can plot results of Anova, correlations, histograms, box plots, bar plots, (generalized) linear models, likert scales, PCA, proportional tables as bar chart etc.
- You can create plots to analyse model assumptions (lm, glm), predictor interactions, multiple contigency tables etc.
- With the import and utility functions, you can, for instance, extract beta coefficients of linear models, convert numeric scales into grouped factors, perform statistical tests, import SPSS data sets (and retrieve variable and value labels from the importet data), convert factors to numeric variables (and vice versa)…
Final remarks
At the bottom of my package page you’ll find some examples of selected functions that have been published on this blog before I created the package. Furthermore, the package includes a sample dataset from one of my research projects. Once the package is installed, you can test each function by running the examples. All news and recent changes can be found in the NEWS section of the package help (type ?sjPlot
to access the help file inside R).
I tried to write a very comprehensive documentation for each function and their parameters, hopefully this will help you using my package…
Any comments, suggestions etc. are very welcome!
Tagged: data visualization, ggplot, R, rstats, sjPlot
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.