Description Usage Arguments Value
View source: R/plot_hierarchy.R
Plot state hierarchy
1 2 3 4 5 |
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 |
base plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.