Learn R Programming

quantro (version 1.6.2)

quantroPlot: Plot results from quantro function.

Description

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

Usage

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

Run this code
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)

Run the code above in your browser using DataLab