plotMultipleARGRichnessGraphs: Plots multiple box and whisker diagrams of the ARG richness...

Description Usage Arguments Value Examples

View source: R/boxplotsARGRichness.R

Description

Plots multiple box and whisker diagrams of the ARG richness comparison between paired sample types for every Location

Usage

1
plotMultipleARGRichnessGraphs(ttest_groups, df_map_subsampled_pairs)

Arguments

ttest_groups

A dataframe of p-values, asterisks, countries and groups.

df_map_subsampled_pairs

A dataframe of paired samples containing group column.

Value

A list of box and whisker ggplot objects.

Examples

1
2
3
4
5
6
df_map_subsampled <- readMappingData("/home/vicky/Documents/CHMI/Resistome-paper/resistomeAnalysis/db/MAPPING_DATA/subsampled_argrich_merged.csv", without_US_duplicates = TRUE)
pair_list <- list(c("stool", "dental"), c("stool", "saliva"), c("dental", "saliva"), c("stool", "dorsum of tongue"), c("stool", "buccal mucosa"), c("dorsum of tongue", "buccal mucosa"), c("dorsum of tongue", "dental"), c("buccal mucosa", "dental"))
df_map_subsampled_pairs <- createPairedData(df_map_subsampled, pair_list)
ttest_groups <- runTtest(df_map_subsampled_pairs)

g <- plotMultipleARGRichnessGraphs(ttest_groups, df_map_subsampled_pairs)

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