metagenePlot | R Documentation |
Plot metagene signal per position. The metagene
must be output from
calcMetagene
function.
metagenePlot( metagene, color = ifelse(metagene$mode == 1, list("steelblue"), list(c("red1", "steelblue")))[[1]], metageneFun = c("mean", "median") )
metagene |
A |
color |
A character variable if |
metageneFun |
A character variable indicating how metagene should be summarized. Must
be selected from |
A ggplot
object showing the metagene signal per position. If
metagene$mode == 1
, the x-axis is labeled as 1, 2, ..., N where N is the width of the
metagene region. If metagene$mode == 2
, the CDS start region is labeled as -M, -(M-1)
, -(M-2), ..., -1, 0, 1, ..., (N-1) where M and N are values set by cdsStartUpstream
and cdsStartDownstream
options in calcMetagene
function. Position 0 in CDS
start region represents the first base of start codon; the CDS end region is labeled as
-(P-1), -(P-2), ..., -1, 0, 1, ..., Q where P and Q are values set by cdsEndUpstream
and cdsEndDownstream
. Position 0 in CDS end region represents the last base of stop
codon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.