PlotBarchart: Plots the results of MakeBarchartData as a set of grouped...

Description Usage Arguments Value

Description

Plots the results of MakeBarchartData as a set of grouped barcharts.

Usage

1
2
3
4
5
PlotBarchart(.data, x.col = "SampleType", fill.col = "taxa",
  grouping.col = "SubjectID", x.labs = attributes(.data)$labels,
  fill.values = attributes(.data)$fill,
  fill.breaks = rev(levels(.data$taxa)), theme = opts$barchart.theme,
  guide = opts$barchart.guide)

Arguments

.data

result from MakeBarchartData

x.col

the mapping for the x-axis

fill.col

the mapping for the fill aesthetic

grouping.col

the grouping columns specified in MakeBarchartData, if any

x.labs

if desired, what to revalue the x-axis labels to

fill.values

named vector for fill colors

fill.breaks

ordering of the fills (currently a noop)

theme

a theme object to add

Value

a ggplot2::ggplot object


eclarke/SarcoidMicrobiome documentation built on May 15, 2019, 7:53 p.m.