View source: R/network.visualization.R
network.heatmap | R Documentation |
The heatmap of network
network.heatmap(
weightDT,
switchMatrix = TRUE,
heatmapSize = NULL,
heatmapTitle = NULL,
heatmapColor = NULL,
showNames = FALSE,
legendName = NULL
)
weightDT |
The weight data table of network |
switchMatrix |
switchMatrix |
heatmapSize |
heatmapSize |
heatmapTitle |
heatmapTitle |
heatmapColor |
heatmapColor |
showNames |
showNames |
legendName |
legendName |
Return a heatmap of ggplot2 object
library(inferCSN)
data("exampleMatrix")
data("exampleGroundTruth")
weightDT <- inferCSN(exampleMatrix)
p1 <- network.heatmap(exampleGroundTruth,
heatmapTitle = "Ground truth")
p2 <- network.heatmap(weightDT,
legendName = "Weight2",
heatmapTitle = "inferCSN")
ComplexHeatmap::draw(p1 + p2)
p3 <- network.heatmap(weightDT,
heatmapTitle = "inferCSN",
heatmapColor = c("#20a485", "#410054", "#fee81f"))
p4 <- network.heatmap(weightDT,
heatmapTitle = "inferCSN",
legendName = "Weight2",
heatmapColor = c("#20a485", "white", "#fee81f"))
ComplexHeatmap::draw(p3 + p4)
p5 <- network.heatmap(weightDT,
heatmapTitle = "inferCSN",
showNames = TRUE)
p5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.