View source: R/plot-ggbartaxa.R
theme_taxbar | R Documentation |
theme_taxbar
theme_taxbar(
axis.text.x = element_text(angle = -45, hjust = 0, size = 8),
legend.position = "bottom",
legend.box = "horizontal",
legend.text = element_text(size = 8),
legend.title = element_blank(),
strip.text.x = element_text(size = 12, face = "bold"),
strip.background = element_rect(colour = "white", fill = "grey"),
...
)
axis.text.x |
element_text, x axis tick labels. |
legend.position |
character, default is "bottom". |
legend.box |
character, arrangement of legends, default is "horizontal". |
legend.text |
element_text, legend labels text. |
legend.title |
element_text, legend title text |
strip.text.x |
element_text, strip text of x |
strip.background |
element_rect, the background of x |
... |
additional parameters |
updated ggplot object with new theme
theme
## Not run:
library(ggplot2)
data(test_otu_data)
test_otu_data %<>% as.phyloseq()
otubar <- ggbartax(test_otu_data, settheme=FALSE) +
xlab(NULL) + ylab("relative abundance(%)") +
theme_taxbar()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.