plotPway {pathVar} | R Documentation

## 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.

### Details

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

### Value

A plot of the results from `sigPway`.

### Author(s)

Laurence de Torrente, Samuel Zimmerman, Jessica Mar

### Examples

    # 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)

[Package pathVar version 1.18.0 Index]