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

Version

0.3.9

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Di Cook

Last Published

February 25th, 2020

Functions in nullabor (0.3.9)

calc_mean_dist

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

Computing th distance for the null plots
opt_bin_diff

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

P-value calculations.
resid_pboot

Parametric bootstrap residuals.
resid_rotate

Rotation residuals.
resid_sigma

Residuals simulated by a normal model, with specified sigma
lal

Los Angeles Lakers play-by-play data.
rorschach

The Rorschach protocol.
lineup

The line-up protocol.
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.
null_dist

Generate null data with a specific distribution.
null_lm

Generate null data with null residuals from a model.
wasps

Wasp gene expression data.
sep_dist

Distance based on separation of clusters
sample_size

Sample size calculator
visual_power

Power calculations.
resid_boot

Bootstrap residuals.
reg_dist

Distance based on the regression parameters
null_permute

Generate null data by permuting a variable.
uni_dist

Distance for univariate data
turk_results

Sample turk results
null_ts

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

Binned Distance
box_dist

Distance based on side by side Boxplots
calc_diff

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

Plotting the distribution of the distance measure
add_true

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

Polls and election results from the 2012 US Election
aud

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

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

Empirical distribution of the distance