sobir (version 0.1.1)

perm_plot: Perm Plot

Description

perm_plot calculates the significance of the observed no-data zones and plots them relative to the simulations.

Usage

perm_plot(perm, n, n2 = n, histogram = TRUE, method = "auto")

Arguments

perm

a perm table generated by the perm_area() function.

n

the sample size of the first vector

n2

the sample size of the second vector. Default is equal to n1.

histogram

TRUE or FALSE. TRUE plots histograms while FALSE plots density plots.

method

Default is "auto".

Value

a ggplot2 histogram and p-value for each no-data zone

Examples

Run this code
# NOT RUN {
a = rnorm(100,0,1)
b = rnorm(100,0,1)
permExample = perm_area(a,b,10)
perm_plot(permExample, 100)
# }

Run the code above in your browser using DataLab