mbecHeatPlot: Heatmap plotting function

Description Usage Arguments Value Examples

View source: R/mbecs_plots.R

Description

Takes data.frame from 'mbecHeat()' and produces a ggplot2 object.

Usage

1
mbecHeatPlot(center, scale, tmp.cnts, tmp.meta, model.vars)

Arguments

center

Boolean flag to indicate whether data is centered or not.

scale

Boolean flag to indicate whether data is scaled or not.

tmp.cnts

Count values of selected features.

tmp.meta

Covariate information for potting.

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.
heat.df <- mbecHeat(input.obj=dummy.mbec, model.vars=c('group','batch'),
center=TRUE, scale=TRUE, method='TOP', n=5, return.data=TRUE)
plot.heat <- mbecHeatPlot(center=TRUE, scale=TRUE, tmp.cnts=heat.df[[1]],
tmp.meta=heat.df[[2]], model.vars=c('group','batch'))

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