hlp_plot_metageneRegions | R Documentation |
It plots an extracted metagene matrix from tx_get_metageneRegions(). Useful when modifying the metagene matrix, like filtering genes out.
hlp_plot_metageneRegions(
metaGeneMatrix,
colVars,
nBins_5UTR,
nBins_CDS,
nBins_3UTR,
summ_fun = "mean",
smooth = TRUE,
spar = 0.5,
plot_type = "lineplot",
normalize = FALSE
)
metaGeneMatrix |
matrix. As obtained by |
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. |
Note It must have the same nBins arguments as the ones used to generate the metagene matrix.
ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.