View source: R/Visualize_Comethylation_Network.R
plotRegionDendro | R Documentation |
plotRegionDendro()
extracts plotting data from a modules
list,
plots a region dendrogram with module assignments, and then saves it as a
.pdf.
plotRegionDendro(
modules,
save = TRUE,
file = "Region_Dendrograms.pdf",
width = 11,
height = 4.25,
verbose = TRUE
)
modules |
A |
save |
A |
file |
A |
width |
A |
height |
A |
verbose |
A |
plotRegionDendro()
is designed to be used in combination with
getModules()
. This function does not produce a ggplot
object, but
instead uses WGCNA::plotDendroAndColors()
to plot the dendrogram.
None, produces a plot as a side effect.
getModules()
to build a comethylation network and identify
modules of comethylated regions.
getModuleBED()
to visualize genomic locations and module
assignments.
getDendro()
and plotDendro()
to generate and visualize
dendrograms for samples, modules, and traits.
## Not run:
# Get Comethylation Modules
modules <- getModules(methAdj, power = sft$powerEstimate, regions = regions,
corType = "pearson", file = "Modules.rds")
# Visualize Comethylation Modules
plotRegionDendro(modules, file = "Region_Dendrograms.pdf")
BED <- getModuleBED(modules$regions, file = "Modules.bed")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.