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, detailed examples on RPubs).

**What does this package do?**

In short, the functions in this package mostly do two things:

- compute basic or advanced statistical analyses
- either plot the results as ggplot-diagram or print them as html-table

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; or
- like quick inspections of (basic) statistics via (html-)tables that are shown in the GUI viewer pane or default browser; or
- want easily create beautiful table outputs that can be imported in office applications.

Furthermore, for advanced users, each functions returns either the prepared ggplot-object (in case of `sjp`

-plotting functions) or the HTML-tables (in case of `sjt`

-table-output functions), which than can be manipulated even further (for instance, for ggplot-objects, you can specify certain parameters that cannot be modified via the sjPlot package or html-tables could be integrated into knitr-documents).

**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.
- You can create table outputs instead of graphs for most plotting functions
- 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!

Hi,

some nice functions in this package.

One request: could you implement an option to suppress CI output in the sjt.lm?

Thanks for your feedback, I’m glad you like the package. I’ve implemented your request, both

`sjt.lm`

and`sjt.glm`

now have a`showConfInt`

parameter to optionally omit the CI from the table output. I’ll upload the update during the next few days…Tom, omitting CI is included in package version 0.8, which was recently accepted and published on CRAN. I assume, at the beginning of the next week there’ll be binaries available via CRAN.

Btw, I also plan to include functions for plotting multiple (generalized) linear models, which would be an equivalent to the

`sjt.lm`

/`sjt.glm`

function, but with plots instead of HTML-tables. Furthermore, I’m planning plotting functions for comparing multiple stepwise-models in a single plot (i.e. several fitted models, each with more predictors includes, while the dependent variable is always the same…). This latter function probably will also be avaiable as table output function.2nd btw: With the

`returnPlot=TRUE`

parameter, ggthemes can easily be used, e.g.:`sjp.frq(discoveries, type="hist", showMeanIntercept=TRUE, returnPlot=T) + theme_few()`

Hi Daniel,

We are very happy such package for R here at StatAce – we are actually in the process of doing something similar here ( http://www.statace.com/ ) . We have built a graphical tool that lets the users wrap any function in its own graphical interface. One of the next things to implement is another tool that lets the user make the output of the function prettier , which seems to be what sjPlot does . Write us an email in case you are interested in some kind of collaboration🙂

Best,

Veliko

and by the way, I really like the package in RStudio🙂