View source: R/plot_sub_cluster.R
plot_sub_cluster | R Documentation |
Creates a zoom plot using ggtree focusing on a cluster.
plot_sub_cluster(hb.object, tree, level, sub.cluster)
hb.object |
The resulting object from running hierBAPS |
tree |
A phylo tree object to plot |
level |
The level of the subcluster to be considered. |
sub.cluster |
An integer representing the subcluster to be considered. |
snp.matrix <- load_fasta(system.file("extdata", "seqs.fa", package = "rhierbaps")) newick.file.name <- system.file("extdata", "seqs.fa.treefile", package = "rhierbaps") tree <- phytools::read.newick(newick.file.name) hb.result <- hierBAPS(snp.matrix, max.depth=2, n.pops=20) plot_sub_cluster(hb.result, tree, level = 1, sub.cluster = 9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.