Description Usage Arguments Value Examples
Draws a dendrogram of hierachical clustering of ARG rpkm for longitudinal US samples
1 | createUSDendrogram(df_map_long, coloured_labels)
|
coloured_labels |
A list of colours named by sample type |
df_map_dup |
A dataframe of combined non-subsampled or subsampled mapping data and metadata, including longitudinal samples |
None
1 2 3 4 5 | library(RColorBrewer)
df_map_dup <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/nonsubsampled_merged.csv", without_US_duplicates = FALSE)
top_col <- rev(brewer.pal(8, "Spectral"))
coloured_labels <- c("stool" = top_col[1], "dorsum of tongue" = top_col[2], "buccal mucosa" = top_col[3], "dental" = top_col[4])
createUSDendrogram(df_map_dup, coloured_labels)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.