Description Usage References Examples
mosaic_jp*
1 |
- The Strucplot Framework: Visualizing Multi-way Contingency Tables with vcd: https://www.jstatsoft.org/index.php/jss/article/view/v017i03/v17i03.pdf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # installation
if(!require(devtools)) install.packages("devtools")
devtools::install_github("419kfj/futools")
# data set
data(HairEyeColor_jp)
# plain mosaic_jp
mosaic_jp0(HairEyeColor_jp)
# without cell color
mosaic_jp2(HairEyeColor_jp)
# set cell color by color matrix
cset <- t(matrix(rep(brewer.pal(4,"Blues"),2),ncol=2))
mosaic_jp2(HairEyeColor_jp,gp=gpar(fill=cset,col=0))
# Pearson residulas
mosaic_jp2(HairEyeColor_jp,shade=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.