smosaic | R Documentation |
Shiny app for creating a Mosaic plot with interactive variable selection.
smosaic(data, xvar = character(0), yvar = character(0), ...)
data |
table or data.frame |
xvar |
character: names of selected variables for x-axis |
yvar |
character: names of selected variables for y-axis |
... |
further parameters given to graphics::mosaicplot |
nothing
if (interactive()) smosaic(Titanic) dfTitanic <- toDataframe(Titanic) if (interactive()) smosaic(dfTitanic)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.