network.heatmap: The heatmap of network

View source: R/network.visualization.R

network.heatmapR Documentation

The heatmap of network

Description

The heatmap of network

Usage

network.heatmap(
  weightDT,
  switchMatrix = TRUE,
  heatmapSize = NULL,
  heatmapTitle = NULL,
  heatmapColor = NULL,
  showNames = FALSE,
  legendName = NULL
)

Arguments

weightDT

The weight data table of network

switchMatrix

switchMatrix

heatmapSize

heatmapSize

heatmapTitle

heatmapTitle

heatmapColor

heatmapColor

showNames

showNames

legendName

legendName

Value

Return a heatmap of ggplot2 object

Examples

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


inferCSN documentation built on Nov. 2, 2023, 6:27 p.m.