plotColTile: Plot factor data as tiles

plotColTileR Documentation

Plot factor data as tiles

Description

Relative relations of two grouping can be visualized by plotting tiles with relative sizes. plotColTile and plotRowTile can be used for this.

Usage

plotColTile(object, x, y, ...)

plotRowTile(object, x, y, ...)

## S4 method for signature 'SummarizedExperiment'
plotColTile(object, x, y, ...)

## S4 method for signature 'SummarizedExperiment'
plotRowTile(object, x, y, ...)

Arguments

object

a SummarizedExperiment object.

x

Character scalar. Specifies the column-level metadata field to show on the x-axis. Alternatively, an AsIs vector or data.frame, see ?retrieveFeatureInfo or ?retrieveCellInfo. Must result in a returned character or factor vector.

y

Character scalar. Specifies the column-level metadata to show on the y-axis. Alternatively, an AsIs vector or data.frame, see ?retrieveFeatureInfo or ?retrieveCellInfo. Must result in a returned character or factor vector.

...

additional arguments for plotting. See mia-plot-args for more details i.e. call help("mia-plot-args")

Value

A ggplot2 object or plotly object, if more than one prevalences was defined.

Examples

data(GlobalPatterns)
se <- GlobalPatterns
plotColTile(se,"SampleType","Primer")

microbiome/miaViz documentation built on Nov. 4, 2024, 12:25 a.m.