hlp_plot_metageneRegions: Plot an extracted metaGeneMatrix

hlp_plot_metageneRegionsR Documentation

Plot an extracted metaGeneMatrix

Description

It plots an extracted metagene matrix from tx_get_metageneRegions(). Useful when modifying the metagene matrix, like filtering genes out.

Usage

hlp_plot_metageneRegions(
  metaGeneMatrix,
  colVars,
  nBins_5UTR,
  nBins_CDS,
  nBins_3UTR,
  summ_fun = "mean",
  smooth = TRUE,
  spar = 0.5,
  plot_type = "lineplot",
  normalize = FALSE
)

Arguments

metaGeneMatrix

matrix. As obtained by tx_get_metageneRegions()

colVars

character. Names of columns for which values will be extracted

nBins_5UTR

integer. Number of bins into which allocate data on 5'UTR regions

nBins_CDS

integer. Number of bins into which allocate data on CDS regions

nBins_3UTR

integer. Number of bins into which allocate data on 3'UTR regions

summ_fun

character. Summarizing function either "sum" or "mean". Default: "mean"

smooth

logical. Set to FALSE for not smoothing line.

spar

numeric. Smoothing parameter, typically (but not necessarily) in (0,1].

plot_type

character. Type of plot to be output, either "lineplot" or "boxplot".

normalize

logical. If set to TRUE, values are normalized so that the area bellow the curve approximates to 1 for each variable.

Details

Note It must have the same nBins arguments as the ones used to generate the metagene matrix.

Value

ggplot


AngelCampos/tx_tools documentation built on April 8, 2024, 9:46 p.m.