View source: R/phyloseq_obj_handling.R
assign_ps_barcol | R Documentation |
assign_ps_barcol
Assign colors to phyloseq::plot_bar object
assign_ps_barcol(
gg_obj,
other_name = c("Others", "Undetermined"),
other_col = c("lightgray", "darkgray"),
palette = "igv",
manual_col_code = NULL,
legend_title = NULL
)
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. |
ggplot2 object.
# taxa_name_summarize(ps_obj, "phylum", top_taxa_n = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.