All noteable changes to bactaxR will be documented in this file
ANI.dendrogram
(default is "average", which was previously hard-coded as the hclust method).ladderize
and ladderize_right
parameters to the phylo.discrete_trait_OTU
function.font_angle
and font_offset_y
parameters to the phylo.discrete_trait_heatmap
function.ANI.graph
function; in bactaxR v0.1.0, ANI.graph
would assign colors to graph nodes by converting user-supplied metadata to a factor, converting resulting factors to numeric values, and then supplying the color palette with the numeric values, i.e., vertex.color = color_palette[as.numeric(as.factor(vertex_attr(ig, "species")))],
. This resulted in colors in the legend sometimes not matching the plotted colors. To correct this, ordered levels are now explicitly used, i.e., vertex.color = color_palette[as.numeric(factor(vertex_attr(ig, "species"), levels = sorted_labels))]
, where sorted_labels <- unique(vertex_attr(ig, "species"))
.Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.