showLegend: Shows the legends for single-cell metadata

View source: R/showLegend.R

showLegendR Documentation

Shows the legends for single-cell metadata

Description

Shows the legends for single-cell metadata based on the shinycell config data.table. This allows user to visualise the different metadata to be plotted and make any modifications if necessary. Note that the display name is shown here instead of the actual name. For more information regarding display name, see ?modMetaName.

Usage

showLegend(scConf, fontSize = 14)

Arguments

scConf

shinycell config data.table

fontSize

font size of legends. Decrease it if you have too many items to display

Value

gtable plot showing the legends for different metadata

Author(s)

John F. Ouyang

Examples

showLegend(scConf)

# Can also save the legend for plotting later
scLegend = showLegend(scConf)
leg = do.call(gtable_rbind, scLegend)
grid.newpage()
grid.draw(leg)


SGDDNB/ShinyCell documentation built on Jan. 25, 2024, 3:19 p.m.