View source: R/Examine_Region_Methylation.R
plotDendro | R Documentation |
plotDendro()
extracts plotting data from an stats::hclust
object, plots a dendrogram, and then saves it as a .pdf.
plotDendro(
dendro,
label = TRUE,
labelSize = 2.5,
expandX = c(0.03, 0.03),
expandY = c(0.3, 0.08),
nBreaks = 4,
save = TRUE,
file = "Dendrogram.pdf",
width = 11,
height = 4.25,
verbose = TRUE
)
dendro |
An stats::hclust object generated by |
label |
A |
labelSize |
A |
expandX |
A |
expandY |
A |
nBreaks |
A |
save |
A |
file |
A |
width |
A |
height |
A |
verbose |
A |
plotDendro()
is designed to be used in combination with getDendro()
.
A ggplot
object is produced and can be edited outside of this function
if desired.
A ggplot
object.
getDendro()
to generate dendrograms for plotDendro()
.
## Not run:
# Assess Sample Similarity
getDendro(methAdj, distance = "euclidean") %>%
plotDendro(file = "Sample_Dendrogram.pdf", expandY = c(0.25,0.08))
# Examine Correlations between Modules
moduleDendro <- getDendro(MEs, distance = "bicor")
plotDendro(moduleDendro, labelSize = 4, nBreaks = 5,
file = "Module_ME_Dendrogram.pdf")
# Characterize Correlations between Samples
sampleDendro <- getDendro(MEs, transpose = TRUE, distance = "bicor")
plotDendro(sampleDendro, labelSize = 3, nBreaks = 5,
file = "Sample_ME_Dendrogram.pdf")
# Examine Correlations between Traits
traitDendro <- getCor(MEs, y = colData, corType = "bicor",
robustY = FALSE) %>%
getDendro(transpose = TRUE)
plotDendro(traitDendro, labelSize = 3.5, expandY = c(0.65,0.08),
file = "Trait_Dendrogram.pdf")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.