Learn R Programming

otuSummary (version 0.1.2)

bplot: Generate barplot with custom controls on the x axis labels

Description

barplot with custom controls on the x axis labels, e.g. rotation.

Usage

bplot(data, srt = 45, yoff = 0.05, dataoff = 0.025, barcol = "grey", grid = TRUE, ...)

Arguments

data

Numeric, vector to plot in barplot.

srt

Numeric, rotation degree of the x axis labels.

yoff

Numeric, vertical offset of x axis labels.

dataoff

Numeric, vertical offset of data labels in relation to the bar height.

barcol

Character, color of bar. By default is grey.

grid

Logical, whether show the grids in the plot.

...

arguments to be passed to/from other methods.

Examples

Run this code
data(otumothur)

summaryInfo <- otuReport(otutab = otumothur, siteInCol = TRUE, taxhead = "taxonomy",
    platform = "qiime", percent = FALSE, taxlevel = "phylum", collap = ";")

length(summaryInfo)
names(summaryInfo)
summaryInfo[[1]]

bplot(summaryInfo[["taxaFreqs"]])

Run the code above in your browser using DataLab