alphawichVis: Visualization of Alpha Diversity Indexes

View source: R/alphawich.R

alphawichVisR Documentation

Visualization of Alpha Diversity Indexes

Description

alphawichVis() will visualize the diversity index values generated from alphadivDF().

Usage

alphawichVis(
  alphawichDF,
  xvar = "Sample",
  yvar = "DiversityIndex",
  colorvar = NULL
)

Arguments

alphawichDF

The alphawichDF object.

xvar

The xvar column name. Users must specify the metadata column to be plotted on the x-axis.

yvar

The yvar column name. By default, the diversity index value will be plotted.

colorvar

The metadata column name that will be used for colour assignment.

Value

A ggplot object.

Examples

# This is one way of using it.
library(mirlyn)
data(example)

## Not run: 
example <- mirl(example, rep = 100)
example <- alphadivDF(example)
alphawichVis(example, "Id")

## End(Not run)


escamero/mirlyn documentation built on Aug. 6, 2023, 9:30 p.m.