Package: vayr 1.1.0

vayr: Extensions for 'ggplot2' to Visualize as You Randomize

Extensions for 'ggplot2' that implement the "visualize as you randomize" principles of Coppock (2021) <doi:10.1017/9781108777919.022>, which can be especially useful when plotting experimental data. Provides position adjustments that arrange over-plotted points so that a statistical model can be shown in data-space, and a helper for graphing extreme value bounds when an experiment encounters attrition.

Authors:Alexander Coppock [aut, cre, cph], Elias Hyde [ctb]

vayr_1.1.0.tar.gz
vayr_1.1.0.zip(r-4.7-any)vayr_1.1.0.zip(r-4.6-any)vayr_1.1.0.zip(r-4.5-any)
vayr_1.1.0.tgz(r-4.6-any)vayr_1.1.0.tgz(r-4.5-any)
vayr_1.1.0.tar.gz(r-4.7-any)vayr_1.1.0.tar.gz(r-4.6-any)
vayr_1.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
vayr/json (API)

# Install 'vayr' in R:
install.packages('vayr', repos = c('https://acoppock.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/acoppock/vayr/issues

Pkgdown/docs site:https://alexandercoppock.com

Datasets:

On CRAN:

Conda:

5.80 score 7 stars 18 scripts 322 downloads 12 exports 21 dependencies

Last updated from:8002751253. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK177
source / vignettesOK287
linux-releaseOK171
macos-releaseOK134
macos-oldrelOK113
windows-develOK159
windows-releaseOK101
windows-oldrelOK109
wasm-releaseOK127

Exports:impute_extreme_valuesposition_bluenoiseposition_bluenoisedodgeposition_circlepackposition_circlepackdodgeposition_honeycombposition_honeycombdodgeposition_jitter_ellipseposition_jitterdodge_ellipseposition_sunflowerposition_sunflowerdodgesunflower

Dependencies:backportscheckmateclicpp11farverggplot2gluegtableisobandlabelinglifecyclepackcirclesR6RColorBrewerRcpprlangS7scalesvctrsviridisLitewithr

Visualize as you randomize
Installation | Contents | Position Jitter Ellipse | Position Blue Noise | Position Sunflower | Position Honeycomb | Position Circle Pack | Example

Last update: 2026-08-19
Started: 2025-02-28

Design-based graphs for seven experiments
A two-arm trial | A blocked experiment | A cluster-randomized experiment | Covariate adjustment | An effect that varies with a covariate | Noncompliance | Attrition

Last update: 2026-08-19
Started: 2026-08-09

Readme and manuals

Help Manual

Help pageTopics
Simulated experiment encountering attritionattrition_experiment
Simulated block-randomized experimentblocked_experiment
Simulated cluster-randomized experimentclustered_experiment
Simulated experiment whose effect varies with a continuous covariatecontinuous_interaction
Simulated experiment with a pretreatment covariatecovariate_adjustment
Impute the extreme value bounds for an outcome with attritionimpute_extreme_values
Simulated experiment with two-sided noncompliancenoncompliance_experiment
Original and Replication data for the Patriot Act experiment described in Persuasion in Parallelpatriot_act
Scatter over-plotted points evenly at randomposition_bluenoise
Scatter over-plotted points evenly at random and dodge groups side-to-sideposition_bluenoisedodge
Arrange over-plotted points with a circle-packing algorithmposition_circlepack
Arrange over-plotted points with a circle-packing algorithm and dodge groups side-to-sideposition_circlepackdodge
Arrange over-plotted points on a honeycomb latticeposition_honeycomb
Arrange over-plotted points on a honeycomb lattice and dodge groups side-to-sideposition_honeycombdodge
Jitter points on an ellipse to avoid over-plottingposition_jitter_ellipse
Jitter points on an ellipse and dodge groups side-to-sideposition_jitterdodge_ellipse
Arrange over-plotted points in a sunflower patternposition_sunflower
Arrange over-plotted points in a sunflower pattern and dodge groups side-to-sideposition_sunflowerdodge
Distribute points using a sunflower seed algorithmsunflower
Simulated two-arm trialtwo_arm_trial
Extensions for 'ggplot2' to Visualize as You Randomizevayr-package vayr