perm_plot calculates the significance of the observed no-data zones and plots them relative to the simulations.
perm_plot(perm, n, n2 = n, histogram = TRUE, method = "auto")
a perm table generated by the perm_area() function.
the sample size of the first vector
the sample size of the second vector. Default is equal to n1.
TRUE or FALSE. TRUE plots histograms while FALSE plots density plots.
Default is "auto".
a ggplot2 histogram and p-value for each no-data zone
# 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