prettyHist | R Documentation |
prettyHist
: plots a sampling distribution
(typically derived from a permutation test as
performed, e.g., by
InPosition::epCA.inference.battery
).
pretyHist
plots the empirical critical value
and position the
value of the criterion.
along with a value of a criterion.
User is required to provide a distribution
and an observed value.
prettyHist( distribution, observed, show.observed = TRUE, observed.col = "mediumorchid4", xlim = c(-1.2, 1.2), breaks = 10, border = "white", distr.col = "darkseagreen", main = "", xlab = "", ylab = "", counts = TRUE, cutoffs = c(0.025, 0.975), show.cutoffs = TRUE, cutoff.col = "firebrick3", gray.distr = TRUE, tail.dir = "+" )
distribution |
the empirical distribution (e.g., from a permutation test). |
observed |
the observed value of the criterion. |
show.observed |
if |
observed.col |
a color for the criterion
(default is |
xlim |
default is |
breaks |
(default is |
border |
(default is |
distr.col |
(default is ( |
main |
(default "") the main title. |
xlab |
(default "") the x-axis label. |
ylab |
(default "") the y-axis label. |
counts |
if |
cutoffs |
[default is |
show.cutoffs |
if TRUE (default) show the critical value(s). |
cutoff.col |
(default is |
gray.distr |
if |
tail.dir |
if |
h the histogram of the distribution
Derek Beaton & Hervé Abdi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.