change_labels: Change names of factors in graph_data to change labels in...

View source: R/internal.R

change_labelsR Documentation

Change names of factors in graph_data to change labels in plot objects

Description

Change names of factors in graph_data to change labels in plot objects

Usage

change_labels(graph_data, treatment = NULL, treatment_labels = NULL,
sample_labels = NULL, classification = NULL, classification_labels = NULL)

Arguments

graph_data

A data.table()) object containing the melted phyloseq data.

treatment

name of the column defined as the treatment.

treatment_labels

a vector of names to be used as labels for treatments/facets.

sample_labels

a vector of names to be used as labels for Samples.

classification

name of the column defined as the classification.

classification_labels

a vector of names to be used as labels for the taxonomic classifications.

Value

data.table


schuyler-smith/phyloschuyler documentation built on March 27, 2024, 4:29 p.m.