All noteable changes to bactaxR will be documented in this file
- Added the ability to specify any hclust agglomeration method in
ANI.dendrogram
(default is "average", which was previously hard-coded as the hclust method).
- Added
ladderize
andladderize_right
parameters to thephylo.discrete_trait_OTU
function.
- Added
font_angle
andfont_offset_y
parameters to thephylo.discrete_trait_heatmap
function.
- Fixed legend color order bug in
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))]
, wheresorted_labels <- unique(vertex_attr(ig, "species"))
.
- Initial commit