Description Usage Arguments Value Examples
Draws a heatmap from a dataframe of ARG abundance for every sample
1 | createRPKMHeatmap(df_map, Location, col_vector, show_column_names = FALSE)
|
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 |
None
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.