# nullabor v0.3.5

0

Monthly downloads

## Tools for Graphical Inference

Tools for visual inference. Generate null data sets
and null plots using permutation and simulation. Calculate distance metrics
for a lineup, and examine the distributions of metrics.

## Readme

# 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")
```

## Functions in nullabor

Name | Description | |

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

No Results! |

## Vignettes of nullabor

Name | ||

distances.Rmd | ||

nullabor-examples.Rmd | ||

nullabor.Rmd | ||

No Results! |

## Last month downloads

## Details

License | GPL (>= 2) |

URL | http://github.com/dicook/nullabor |

BugReports | http://github.com/dicook/nullabor/issues |

LazyData | true |

Type | Package |

LazyLoad | false |

VignetteBuilder | knitr |

RoxygenNote | 6.0.1 |

NeedsCompilation | no |

Packaged | 2018-09-23 09:50:46 UTC; dicook |

Repository | CRAN |

Date/Publication | 2018-09-23 22:20:03 UTC |

#### Include our badge in your README

```
[![Rdoc](http://www.rdocumentation.org/badges/version/nullabor)](http://www.rdocumentation.org/packages/nullabor)
```