View source: R/plot_epimutations.R
plot_epimutations | R Documentation |
This function plots a given epimutation and UCSC annotations for the specified genomic region.
plot_epimutations(
dmr,
methy,
genome = "hg19",
genes_annot = FALSE,
regulation = FALSE,
from = NULL,
to = NULL
)
dmr |
epimutation obtained as a result of epimutations function. |
methy |
a GenomicRatioSet object containing the information of control and case samples used for the analysis in the epimutations function. See the constructor function GenomicRatioSet, makeGenomicRatioSetFromMatrix. |
genome |
a character string
specifying the genome of reference.
It can be set as |
genes_annot |
a boolean. If TRUE gene annotations are plotted. Default is FALSE. |
regulation |
a boolean.
If TRUE UCSC annotations
for CpG Islands, H3K27Ac, H3K4Me3
and H3K27Me3 are plotted. The default is FALSE.
The running process when |
from , to |
scalar, specifying the
range of genomic coordinates
for the plot of gene annotation region.
If |
The tracks are plotted vertically. Each track is separated by different background colour and a section title. The colours and titles are preset and cannot be set by the user.
Note that if you want to see the UCSC annotations maybe you need to take a bigger genomic region.
The function returns a plot divided in two parts:
ggplot graph including the individual with the epimutation in red, the control samples in dashed black lines and population mean in blue. Grey shaded regions indicate 1, 1.5 and 2 standard deviations from the mean of the distribution.
UCSC gene annotations for the specified genomic
region (if genes == TRUE
)
UCSC annotations for CpG Islands, H3K27Ac,
H3K4Me3 and H3K27Me3 (if regulation == TRUE
)
data(GRset)
data(res.epi.manova)
plot_epimutations(res.epi.manova[1,], GRset)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.