View source: R/mplot3_mosaic.R
mplot3_mosaic | R Documentation |
Plots a mosaic plot using graphics::mosaicplot
mplot3_mosaic(
x,
main = NULL,
xlab = NULL,
ylab = NULL,
border = FALSE,
theme = rtTheme,
theme.args = list(),
palette = rtPalette,
mar = NULL,
oma = rep(0, 4),
par.reset = TRUE,
new = FALSE,
autolabel = letters,
filename = NULL,
pdf.width = 5,
pdf.height = 5,
...
)
x |
contingency table, e.g. output of |
main |
Character: Main title |
xlab |
Character: x-axis label |
ylab |
Character: y-axis label |
border |
Color vector for cell borders or FALSE to turn off. Default = FALSE |
theme |
Character: Run |
theme.args |
List of arguments to pass to |
palette |
Vector of colors, or Character defining a builtin palette - get options with
|
new |
Logical: If TRUE, add plot to existing plot. See |
filename |
Character: Path to file to save plot. Default = NULL |
pdf.width |
Float: Width in inches for PDF output, if |
pdf.height |
Float: Height in inches for PDF output, if |
E.D. Gennatas
## Not run:
party <- as.table(rbind(c(762, 327, 468), c(484, 239, 477)))
dimnames(party) <- list(gender = c("F", "M"),
party = c("Democrat","Independent", "Republican"))
mplot3_mosaic(party)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.