mbecMosaicPlot: Mosaic plotting function

Description Usage Arguments Value Examples

View source: R/mbecs_plots.R

Description

Takes data.frame from mbecMosaic and produces a ggplot2 object.

Usage

1
mbecMosaicPlot(study.summary, model.vars)

Arguments

study.summary

'mbecMosaic' output object.

model.vars

two covariates of interest to select by first variable selects panels and second one determines coloring.

Value

ggplot2 object

Examples

1
2
3
4
5
6
# This will return a paneled plot that shows results for the variance
# assessment.
mosaic.df <- mbecMosaic(input.obj=dummy.mbec, model.vars=c('group','batch'),
return.data=TRUE)
plot.mosaic <- mbecMosaicPlot(study.summary=mosaic.df,
model.vars=c('group','batch'))

buschlab/MBECS documentation built on Jan. 21, 2022, 1:27 a.m.