distplot: Plotting the distribution of the distance measure

Description Usage Arguments Examples

View source: R/distmet.r

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

1
distplot(dat, m = 20)

Arguments

dat

output from distmet

m

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
if (require('dplyr')) {
  d <- lineup(null_permute('mpg'), mtcars, pos = 1)
  library(ggplot2)
  ggplot(d, aes(mpg, wt)) + geom_point() + facet_wrap(~.sample)
  distplot(distmet(d, var = c('mpg', 'wt'), 'reg_dist', null_permute('mpg'),
    pos = 1, repl = 100, m = 8), m = 8)
}

## End(Not run)

Example output

Loading required package: dplyr

Attaching package: 'dplyr'

The following objects are masked from 'package:stats':

    filter, lag

The following objects are masked from 'package:base':

    intersect, setdiff, setequal, union

nullabor documentation built on Feb. 26, 2020, 1:07 a.m.