plotPermResults: Plot permutation test results

View source: R/plotPermResults.R

plotPermResultsR Documentation

Plot permutation test results

Description

Show a graphical representation of permutation test.

Usage

plotPermResults(permTestTx_results = NULL, breaks = 15, alpha = 0.05,
test_type = "one-sided", binwidth = NULL)

Arguments

permTestTx_results

A permTestTx.results list object, which can be generated by the permTestTx function.

breaks

Histogram breaks. Default is 15.

alpha

Significance level.

test_type

The type of the test. This argument only receives either two options "one-sided" or "two-sided". Default is "one-sided".

binwidth

Histogram binwidth.

Value

A plot object.

See Also

permTestTx

Examples

file <- system.file(package="RgnTX", "extdata", "permTestTx_results.rds")
permTestTx_results <- readRDS(file)
p_a <- plotPermResults(permTestTx_results, binwidth = 1)
p_a

yue-wang-biomath/RgnTX documentation built on Aug. 24, 2023, 1:12 p.m.