View source: R/plot_gain_loss.R
plot_gain_loss | R Documentation |
Plots a expected gain and loss events onto the branches of the phylogeny.
plot_gain_loss(fit, tip_label = TRUE, text_size = 14, color_pallete = 7)
fit |
a fitted pangenome model output by running 'panstripe' |
tip_label |
whether or not to show tree tip labels (default=TRUE) |
text_size |
adjusts the size of text in the plot |
color_pallete |
the colour pallete to use. A number between 1 & 9. See 'scale_colour_brewer' for more details |
a plot of the phylogeny coloured by the inferred total gene gain/loss events per branch
sim <- simulate_pan(rate=1e-3)
fA <- panstripe(sim$pa, sim$tree, nboot=0)
plot_gain_loss(fA, color_pallete=7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.