Plot results from quantro function.

Share:

Description

This function plots the histogram of the null test statistics from permutation test in the quantro function.

Usage

1
2
quantroPlot(object, savePlot = FALSE, xLab = NULL, yLab = NULL,
  mainLab = NULL, binWidth = NULL)

Arguments

object

a quantro object from quantro

savePlot

a TRUE/FALSE object argument determining if the plot will be saved for further use or immediately displayed on the screen.

xLab

label for x-axis

yLab

label for y-axis

mainLab

title of plot

binWidth

binwidth or histogram. Default is the stat_bin default.

Value

A histogram will be plotted containing the null test statistics when using boostrapped samples. The red line is the observed test statistic quantroStat from quantro().

Examples

1
2
3
4
5
6
7
8
9
library(minfi)
data(flowSorted)
p <- getBeta(flowSorted, offset = 100)
pd <- pData(flowSorted)

library(doParallel)
registerDoParallel(cores=4)
qtest <- quantro(p, pd$CellType, B = 100)
quantroPlot(qtest)