Skip to contents

This function plots the diversity index metrics.

Usage

plot_diversity_index(data, index, attr_col)

Arguments

data

A data frame of diversity index metrics.

index

Character. Diversity index metric.

attr_col

Character. Attribute column name.

Value

A ggplot2 plot of diversity index metrics.

Examples

if (FALSE) { # \dontrun{
proj <- reTCR::get_study(id = "PRJNA473147", attr_col = "cmv_status")
reTCR::plot_diversity_index(
  proj@diversity@shannon,
  "shannon_wiener_index",
  "cmv_status"
)
} # }