assign_ps_barcol: Assign colors to phyloseq::plot_bar object

View source: R/phyloseq_obj_handling.R

assign_ps_barcolR Documentation

Assign colors to phyloseq::plot_bar object

Description

assign_ps_barcol Assign colors to phyloseq::plot_bar object

Usage

assign_ps_barcol(
  gg_obj,
  other_name = c("Others", "Undetermined"),
  other_col = c("lightgray", "darkgray"),
  palette = "igv",
  manual_col_code = NULL,
  legend_title = NULL
)

Arguments

gg_obj

ggplot2 object.

other_name

Character. The name of "other" taxa.

other_col

Character. The colors to fill "other" taxa.

palette

Character. Currently only "igv" is available.

manual_col_code

Character vector. The colors to fill "other" taxa.

legend_title

Character. The title of the color legend.

Value

ggplot2 object.

Examples

# taxa_name_summarize(ps_obj, "phylum", top_taxa_n = 10)

ong8181/macam documentation built on April 11, 2024, 12:58 p.m.