mosaic_jp: set up font for using Japanese with vcd::mosaic

Description Usage References Examples

View source: R/mosaic_jp.R

Description

mosaic_jp*

Usage

1

References

- The Strucplot Framework: Visualizing Multi-way Contingency Tables with vcd: https://www.jstatsoft.org/index.php/jss/article/view/v017i03/v17i03.pdf

Examples

 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)

419kfj/futools documentation built on Nov. 21, 2019, 3:49 p.m.