Learn R Programming

⚠️There's a newer version (0.3.12) of this package.Take me there.

nullabor: lineup and Rorschach plots for visual inference

Di Cook, Hadley Wickham, Niladri Roy Chowdhury, Heike Hofmann July 25, 2018

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,205

Version

0.3.5

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Di Cook

Last Published

September 23rd, 2018

Functions in nullabor (0.3.5)

null_gen

Computing th distance for the null plots
null_permute

Generate null data by permuting a variable.
resid_sigma

Residuals simulated by a normal model, with specified sigma
null_lm

Generate null data with null residuals from a model.
rorschach

The Rorschach protocol.
resid_boot

Bootstrap residuals.
lineup

The line-up protocol.
reg_dist

Distance based on the regression parameters
null_dist

Generate null data with a specific distribution.
electoral

Polls and election results from the 2012 US Election
null_ts

Generate null data by simulating from a time series model.
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.
uni_dist

Distance for univariate data
visual_power

Power calculations.
wasps

Wasp gene expression data.
opt_bin_diff

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

Parametric bootstrap residuals.
lal

Los Angeles Lakers play-by-play data.
resid_rotate

Rotation residuals.
pvisual

P-value calculations.
sep_dist

Distance based on separation of clusters
turk_results

Sample turk results
decrypt

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

Plotting the distribution of the distance measure
distmet

Empirical distribution of the distance
calc_diff

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

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

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

Binned Distance
calc_mean_dist

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

Distance based on side by side Boxplots