createRPKMHeatmap: Draws a heatmap from a dataframe of ARG abundance for every...

Description Usage Arguments Value Examples

View source: R/heatmaps.R

Description

Draws a heatmap from a dataframe of ARG abundance for every sample

Usage

1
createRPKMHeatmap(df_map, Location, col_vector, show_column_names = FALSE)

Arguments

df_map

A dataframe of combined non-subsampled or subsampled mapping data and metadata

Location

A string of the study Location e.g. "China"

col_vector

A character vector of colours, named by sample type

show_column_names

Logical: If TRUE, shows column names on heatmap

Value

None

Examples

1
2
3
4
5
6
library(RColorBrewer)

df_map <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/nonsubsampled_merged.csv", without_US_duplicates = TRUE)
top_col <- brewer.pal(4, "Paired")
col_vector <- c("stool" = top_col[1], "saliva" = top_col[3])
createRPKMHeatmap(df_map, "China", col_vector, show_column_names = TRUE)

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