Skip to contents

Research software · R package

Look within groups.

We built plotrr to help inspect relationships within groups before fitting a model to the pooled data.

Charles Crabtree and Michael J. Nelson

plotrr: Human – AI (editor) 👤✏️🤖

Initial versions: entirely human-created. AI was used only for later updates and code fixes.

Quick start

install.packages("plotrr")
library(plotrr)

# One bivariate plot for each cylinder group.
bivarplots("wt", "mpg", "cyl", mtcars)

For the development version, use remotes::install_github("lobsterbush/plotrr").

Explore within groups

A relationship in the whole sample can look different within a country or school. We use these plots to see which groups follow the pattern and which ones need a closer look.

Task Function
Compare two measures within each group bivarplots()
Inspect distributions as histograms histplots()
Compare distributions as violins violinplots()
Make group-specific dot plots dotplots()
Plot a relationship with marginal rugs bivarrugplot()

Pass column names as strings and supply a data frame. Functions that produce several plots print each plot in turn; consult the reference for each signature.

Provenance

Human – AI (editor) 👤✏️🤖

We wrote every initial version ourselves, without AI. We’ve used AI only for later updates and code fixes. I’m Charles Crabtree, and this is my account of how the package was made.

The label and mark follow The Latent Review’s provenance standard, shared under CC BY 4.0. The software remains MIT licensed.

Help and development

If something isn’t working, please tell us in the issue tracker. The source and README include installation requirements and local documentation build instructions.