plot_config_diffs | R Documentation |
Define a publication-style plot theme
plot_config_diffs(Config1, Config2, show_variant_names = FALSE)
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 |
a ggplot heatmap style plot showing the differences between the two Config matrices, specifically the differences Config1 - Config2.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.