nullabor (version 0.3.1)

distplot: Plotting the distribution of the distance measure

Description

The permutation distribution of the distance measure is plotted with the distances for the null plots. Distance measure values for the null plots and the true plot are overlaid.

Usage

distplot(dat, m = 20)

Arguments

dat

output from distmet

m

the number of plots in the lineup; m = 20 by default

Examples

Run this code
# NOT RUN {
if (require('dplyr')) {
  d <- lineup(null_permute('mpg'), mtcars, pos = 1)
  qplot(mpg, wt, data=d) + facet_wrap(~.sample)
  distplot(distmet(d, var = c('mpg', 'wt'), 'reg_dist', null_permute('mpg'),
    pos = 1, repl = 100, m = 8), m = 8)
}
# }

Run the code above in your browser using DataLab