createUSDendrogram: Draws a dendrogram of hierachical clustering of ARG rpkm for...

Description Usage Arguments Value Examples

View source: R/dendrogram.R

Description

Draws a dendrogram of hierachical clustering of ARG rpkm for longitudinal US samples

Usage

1
createUSDendrogram(df_map_long, coloured_labels)

Arguments

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

Value

None

Examples

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)

blue-moon22/resistomeAnalysis documentation built on Jan. 17, 2020, 4:15 a.m.