microwave: Plot a wave based on microbial profiles

Description Usage Arguments Value Examples

View source: R/micRowave.R

Description

Plot a wave representation of bacteria based on relative abundance data. Microwave takes as input a data frame of microbial abundances and generates a set of points for each taxon that are randomly asigned a position in a wave with an arbitrary colour and size. This produces an image with an aesthetically pleasing view of an individual's microbiome profile with the intended use for participant engagement. The aim is that participants can receive an abstract view of their own microbiome. The wave can be produced with or without a corresponding epithelial layer - maybe of use to folk that do not work on gut samples but would like a visual representation of individual microbiomes.

Usage

1
2
microwave(abundances, with_image = TRUE, background = "white",
  text = "")

Arguments

abundances

a data frame object

with_image

do you want to include the epithelium? Deafults to TRUE

background

colour of background in the plots (colours supported in the generic R colour palettes)

text

include text above the plot. Defaults to no text.

Value

.png files with plots per sample (columns in abundance data frame)

Examples

1

nickilott/micRowave documentation built on May 29, 2019, 8:36 a.m.