tree_maker: Create Dendrogram Based on Plasmid Content

View source: R/report_related.R

tree_makerR Documentation

Create Dendrogram Based on Plasmid Content

Description

Reads report, converts to matrix of Sample ~ Plasmid with Sureness as cell values. Performs a hierarchical cluster analysis on a set of dissimilarities derived from the matrix. Creates a dendrogram from this data. Returns either the HC data or the dendrogram plot

Usage

tree_maker(report, hc.only = NA)

Arguments

report

Dataframe of results produced by subsampler or combine_results

hc.only

Flag to return only hierarchical clustering results instead of dendrogram plot (set to 1)

Value

Dendrogram object or hierarchical clustering results

See Also

subsampler, combine_results

Examples

## Not run: 
tree_maker(report)

## End(Not run)

phac-nml/plasmidprofiler documentation built on June 11, 2022, 11:25 a.m.