Learn R Programming

nullabor: lineup and Rorschach plots for visual inference

Di Cook, Hadley Wickham, Niladri Roy Chowdhury, Heike Hofmann February 26, 2020

nullabor

Tools for graphical inference: prevent fooling yourself with the Rorschach protocol and check the surprising features in your data with the lineup protocol!

Installation

The nullabor package can be installed from CRAN

install.packages("nullabor")

You can install the development version of nullabor from github with:

# install.packages("devtools")
devtools::install_github("dicook/nullabor")

Copy Link

Version

Install

install.packages('nullabor')

Monthly Downloads

1,371

Version

0.3.12

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 21st, 2024

Functions in nullabor (0.3.12)

sample_size

Sample size calculator
theme_strip

A theme to minimally strip away the context
tips

Tipping data
uni_dist

Distance for univariate data
turk_results

Sample turk results
sep_dist

Distance based on separation of clusters
resid_rotate

Rotation residuals.
lal

Los Angeles Lakers play-by-play data.
resid_pboot

Parametric bootstrap residuals.
find_plot_data

Find plot data. If data is not specified, this function will attempt to find the data corresponding to the last ggplot2 created or displayed. This will work in most situations where you are creating the plot and immediately displaying it, but may not work in other situations. In those cases, please specify the data explicitly.
pvisual

P-value calculations.
wasps

Wasp gene expression data.
visual_power

Power calculations.
rorschach

The Rorschach protocol.
resid_sigma

Residuals simulated by a normal model, with specified sigma
add_true

Add true data into data frame containing null data sets.
calc_mean_dist

Calculating the mean distances of each plot in the lineup.
opt_bin_diff

Finds the number of bins in x and y direction which gives the maximum binned distance.
null_dist

Generate null data with a specific distribution.
calc_diff

Calculating the difference between true plot and the null plot with the maximum distance.
lineup

The line-up protocol.
distplot

Plotting the distribution of the distance measure
bin_dist

Binned Distance
box_dist

Distance based on side by side Boxplots
aud

Conversion rate of 1 Australian Doller (AUD) to 1 US Dollar
electoral

Polls and election results from the 2012 US Election
null_permute

Generate null data by permuting a variable.
null_lm

Generate null data with null residuals from a model.
null_gen

Computing th distance for the null plots
null_ts

Generate null data by simulating from a time series model.
decrypt

Use decrypt to reveal the position of the real data.
distmet

Empirical distribution of the distance
reg_dist

Distance based on the regression parameters
resid_boot

Bootstrap residuals.