Learn R Programming

smvgraph (version 0.1.2)

smosaic: smosaic

Description

Shiny app for creating a Mosaic plot with interactive variable selection.

Usage

smosaic(data, xvar = character(0), yvar = character(0), ...)

Arguments

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()

Value

nothing

Examples

Run this code
# NOT RUN {
if (interactive()) smosaic(Titanic)
dfTitanic <- table2dataframe(Titanic)
if (interactive()) smosaic(dfTitanic)
# }

Run the code above in your browser using DataLab