theme_taxbar: theme_taxbar

Description Usage Arguments Value See Also Examples

View source: R/plot-ggbartaxa.R

Description

theme_taxbar

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
theme_taxbar(
  axis.text.x = element_text(angle = -45, hjust = 0, size = 12),
  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"),
  ...
)

Arguments

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

Value

updated ggplot object with new theme

See Also

theme

Examples

1
2
3
4
5
library(ggplot2)
data(test_otu_data)
otubar <- ggbartax(test_otu_data, settheme=FALSE) + 
    xlab(NULL) + ylab("relative abundance(%)") + 
    theme_taxbar()

MicrobiotaProcess documentation built on April 18, 2021, 6 p.m.