showLegend | R Documentation |
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
.
showLegend(scConf, fontSize = 14)
scConf |
shinycell config data.table |
fontSize |
font size of legends. Decrease it if you have too many items to display |
gtable plot showing the legends for different metadata
John F. Ouyang
showLegend(scConf)
# Can also save the legend for plotting later
scLegend = showLegend(scConf)
leg = do.call(gtable_rbind, scLegend)
grid.newpage()
grid.draw(leg)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.