plotdpp: Plots diagnostics from DiProPerm test

Description Usage Arguments Value Author(s) Examples

View source: R/plotdpp.R

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

1
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 B univariate statistics, and "all" displays all 4 diagnostic plots in one plot. Additionally, one can specify "perm1" to display the projection scores for the first permutation and "perm2" to display the projection scores for the second permutation.

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

1
2
3
4
5
data(mushrooms)
X <- Matrix::t(mushrooms$X)
y <- mushrooms$y
dpp <- DiProPerm(X=X,y=y,B=10)
plotdpp(dpp)

diproperm documentation built on May 15, 2021, 1:12 a.m.