PlotEnrichment: Plot Enrichment

Description Usage Arguments Value

View source: R/funcivar.R

Description

a flexible plotting tool of the enrichment data.frame generated by CalculateEnrichment()

Usage

1
2
PlotEnrichment(variant.enrichment, value = "difference", block1 = NULL,
  block2 = NULL, color.by = NULL, colors = NULL, ncol = 1)

Arguments

variant.enrichment

a data.frame of enrichment data generated by CalculateEnrichment()

value

one of 'difference' or 'oddsratio', thereby plotting the difference in beta distributions between foreground and background, or the oddsratio of the comparison.

block1

character string defining the column of variant.enrichment to be used as a factor by which to separate the enrichment into blocks (separate panels) in the plot. Default is NULL, in which case there is no blocking.

block2

character string defining the column of variant.enrichment to be used as a factor by which to separate the enrichment into blocks (separate panels) in the plot. Default is NULL, in which case there is no blocking.

color.by

optional character string defining the column of variant.enrichment to be used to color the values. If this column has hex color values, in the format #ff0000 they will be used.

colors

optional character vector defining the colors to use for each value. Must be the same length as the the number of rows in the variante.enrichment data.frame.

ncol

number of columns to use for facet_wrap if only one block is defined.

Value

a ggplot plot object


Simon-Coetzee/funcivar documentation built on Aug. 2, 2021, 9:55 a.m.