plot_hierarchy: Plot State Hierarchy (Quadrant plot)

View source: R/plot_hierarchy.R

plot_hierarchyR Documentation

Plot State Hierarchy (Quadrant plot)

Description

Plot state hierarchy

Usage

plot_hierarchy(
  X,
  quadrant.names = c("bl", "br", "tl", "tr"),
  main = NULL,
  xlab = "Relative meta-module score [log2(|SC1-SC2|+1)]",
  ylab = "Relative meta-module score [log2(|SC1-SC2|+1)]",
  groups = NULL,
  group.cols = NULL,
  legend = T,
  legend.pos = "bottom",
  legend.horiz = T
)

Arguments

X

two-column matrix or dataframe with x and y coordinates.

quadrant.names

character vector to label quadrants. Default: c("bl", "br", "tl", "tr")

main

plot title. Default: NULL

xlab

x-axis title. Default: 'Relative meta-module score [log2(|SC1-SC2|+1)]'

ylab

y-axis title. Default: 'Relative meta-module score [log2(|SC1-SC2|+1)]'

groups

a named character vector, where the vector corresponds to rownames in X and names are the groups to colour by. Default: NULL

group.cols

named character vector of colours to use for each group. Names should match names in groups. Default: NULL

legend

logical to draw legend if groups are provided. Default: T

legend.pos

legend position. Default: 'bottom'

legend.horiz

logical indicating whether legend should be horizontally drawn. Default: T

Value

base plot


jlaffy/scalop documentation built on March 24, 2024, 9 a.m.