pathVar (version 1.2.0)

plotPway: Checks if an object is from the one sample or two samples cases and then plots reference distribution and the chosen pathway.

Description

Checks if an object is from the one sample or two samples cases and then plots reference distribution and the chosen pathway.

Usage

plotPway(pvalue_results,pathway,sig)

Arguments

pvalue_results
output of pathVarTwoSamples or pathVarOneSample step.
pathway
the chosen pathway you want to plot.
sig
output of sigPway or NULL.

Value

A plot of the results from sigPway.

Details

Plots the results of the one or two samples case for a chosen pathway.

Examples

Run this code
# we run the 2 samples analysis on the first 10 pathways from kegg
pways.kegg.10pways <- lapply(pways.kegg, function(x) x[1:10])
results_2samples=pathVarTwoSamplesCont(bock,pways.kegg.10pways,groups=as.factor(c(rep(1,10),rep(2,10))))
sigPways <- sigPway(results_2samples,0.05)
plotPway(results_2samples,"Glycolysis / Gluconeogenesis",sigPways)

Run the code above in your browser using DataLab