plotdpp {diproperm} | R Documentation |
Plots diagnostics from DiProPerm test
Description
This function plots the diagnostics of a DiProPerm test including the projection scores for the observed data, projection scores for the permutations with the smallest and largest univariate statistic values, and permutation distribution for B
univariate statistics.
Usage
plotdpp(dpp, plots = "all", w = 0.001, h = 0.001)
Arguments
dpp |
A DiProPerm object. |
plots |
A string designating the desired plots to be displayed:
"obs" displays the projection scores for the observed data,
"min" displays the projection scores for the permutation with the smallest univariate statistic value,
"max" displays the projection scores for the permutation with the largest univariate statistic value,
"permdist" displays the permutation distribution for |
w |
An integer indicating the width of the jitter. The default is 0.001. |
h |
An integer indicating the height of the jitter. The default is 0.001. |
Value
A ggplot
Author(s)
Andrew G. Allmon, J.S. Marron, Michael G. Hudgens
Examples
data(mushrooms)
X <- Matrix::t(mushrooms$X)
y <- mushrooms$y
dpp <- DiProPerm(X=X,y=y,B=10)
plotdpp(dpp)