plotGraph {methylInheritance} | R Documentation

## Generate a graph for a permutation analysis

### Description

Generate a graph for a permutation analysis using observed and shuffled results.

### Usage

    plotGraph(formatForGraphDataFrame)

### Arguments

`formatForGraphDataFrame` | a `data.frame` containing the observation results (using real data) and the permutation results (using shuffled data). Both hyper and hypo differentially conserved methylation results must be present. The `data.frame` must have 3 columns : "TYPE", "RESULT" and "SOURCE". The "TYPE" can be either "HYPER" or "HYPO". The "RESULT" is the number of conserved differentially elements. The "SOURCE" can be either "OBSERVATION" or "PERMUTATION".

### Value

a graph showing the permutation analysis results

### Author(s)

Astrid Deschenes, Pascal Belleau

### Examples

    ## Loading dataset containing all results
    data(methylInheritanceResults)

    ## Extract information for the intersection between conserved differentially
    ## methylated sites (type = sites) between the intersection of 2
    ## generations (inter = i2): F2 and F3 (position = 2)
    info <- extractInfo(allResults = methylInheritanceResults,
        type = "sites", inter="i2", 2)

    ## Create graph
    plotGraph(info)

[Package methylInheritance version 1.12.0 Index]