Plot state hierarchy
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
)
two-column matrix or dataframe with x and y coordinates.
character vector to label quadrants. Default: c("bl", "br", "tl", "tr")
plot title. Default: NULL
x-axis title. Default: 'Relative meta-module score [log2(|SC1-SC2|+1)]'
y-axis title. Default: 'Relative meta-module score [log2(|SC1-SC2|+1)]'
a named character vector, where the vector corresponds to rownames in X and names are the groups to colour by. Default: NULL
named character vector of colours to use for each group. Names should match names in groups. Default: NULL
logical to draw legend if groups are provided. Default: T
legend position. Default: 'bottom'
logical indicating whether legend should be horizontally drawn. Default: T
base plot