plot_config_diffs: Define a publication-style plot theme

View source: R/plotting.R

plot_config_diffsR Documentation

Define a publication-style plot theme

Description

Define a publication-style plot theme

Usage

plot_config_diffs(Config1, Config2, show_variant_names = FALSE)

Arguments

Config1

variant by clone matrix defining the first clonal structure

Config2

variant by clone matrix defining the second clonal structure

show_variant_names

logical(1), should the variant names (rownames of Config matrices) be shown on the plot? Default is FALSE.

Value

a ggplot heatmap style plot showing the differences between the two Config matrices, specifically the differences Config1 - Config2.

Examples

Config1 <- matrix(c(
    rep(0, 15), rep(1, 8), rep(0, 7),
    rep(1, 5), rep(0, 3), rep(1, 7)
), ncol = 3)
Config2 <- matrix(c(
    rep(0, 15), rep(1, 8), rep(1, 7),
    rep(0, 5), rep(1, 3), rep(1, 7)
), ncol = 3)
rownames(Config1) <- rownames(Config2) <- paste0("var", 1:nrow(Config1))
colnames(Config1) <- colnames(Config2) <- paste0("clone", 1:ncol(Config1))
plot_config_diffs(Config1, Config2)

PMBio/cardelino documentation built on Nov. 21, 2022, 4:52 a.m.