plotNeighborsOrientation: Stacked barplot of gene orientations for upstream and...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/plotNeighborsOrientation.R

Description

Plots stacked bars of the percentage of each orientation for the upstream and downstream genes.

Usage

1
plotNeighborsOrientation(orientationStats)

Arguments

orientationStats

A data frame produced by the analyzeNeighborsOrientation function

Details

The function only plots the following orientations, if present:

Value

A ggplot object

Author(s)

Pascal GP Martin

See Also

ggplot2, ggplot

Examples

1
2
3
4
5
6
7
8
9
## Obtain gene neighborhood information:
  GeneNeighbors <- getGeneNeighborhood(Genegr)
## Define a (random) set of (100) genes:
  set.seed(123)
  randGenes <- sample(names(Genegr), 100)
## Analyze the orientation of their neighbors:
  NOS <- analyzeNeighborsOrientation(randGenes, GeneNeighborhood = GeneNeighbors)
## Plot the results:
  plotNeighborsOrientation(NOS)

pgpmartin/GeneNeighborhood documentation built on Sept. 2, 2021, 6:37 a.m.