vcd::mosaic
wrapper
Package
Tokyo.R #69 LT
kazuo.fujimoto2007@gmail.com
mosaic plot
•
•
•
• n =xx
• 65 2 mosaic plot
• 66 vcd/vcdExtra 2
• 67 vcd (3) long format
Gateway
• Slide share
• vcd::mosaic base::mosaicplot
•
•
• ….
my.largs <- list(gp_labels = gpar(fontsize =10, fon;amily = "sans"),
gp_varnames = gpar(fontsize = 12, fon;amily = "sans"),
gp_text=gpar(fontsize =10, fon;amily = "sans"))
my.main <- gpar(fontsize = 14,fon;amily = "sans") # for main Ctle
my.sub <- gpar(fontsize = 10,fon;amily = "sans") # for sub Ctle
text_gp <- gpar(fontsize = 12,fon;amily = "sans")# for facet
# wapper of mosaic basic wrapper
#
mosaic_jp <- funcCon(.tbl,...){
mosaic(.tbl,
labeling_args=my.largs,
main_gp = my.main,
sub_gp = my.sub,
...)
}
mosaic
# colset is the col name of RColorbrewer ex: "Pastel1", "Blues"
# library(RColorBrewer)
# display.brewer.all(n=10, exact.n=FALSE) # you can see the color palette
mosaic_jp1 <- function(.tbl,main="mosaic_jp1",colset="Set3",...){
nc <- (dim(.tbl))[2]
mosaic(.tbl,gp=gpar(fill=brewer.pal(nc,colset),col=0),
margins = c(left = 5,top = 4),
labeling_args=my.largs,
main_gp = my.main, sub_gp = my.sub,
rot_labels = c(left = 0, top = 45,right=0),
keep_aspect_ratio=FALSE,
# main=main,
labeling = labeling_values)
}
mosaic_jp1
mosaic_jp2
•
• Wrapper
• function
• .R source()
• Package
Package ….
• R19.x
Windows• …
Mac•
CRAN•
•
• ……
Package
• CRAN
GitHub
• devtools
•
•
• RStudio
GitHub
PUSH
Git
•
•
•
• GitHub
• →
(^^)
• GitHub
PUSH PUSH
PUSH
•
Build
• GitHub PUSH
RStudio Package
•
• /R
mosaic_jp
• Build → Install & Restart
hello world build
vcd::mosaic
mosaic
•
default
mosaic_jp1,
mosaic_jp2
mosaic_jp
GitHub OK
• iMac SSD
MacBook Dropbox
• R/RStudio Git ( Mac
….)
• vcdJp Git
Build
• Install & Restart vcdJp
•
• mac RStudio Build
• Dropbox
•
GitHub PUSH
PUSH
….
• CRAN
GitHub β
h"ps://github.com/• 419k4
GitHub•
del
GitHub•
README.md
PUSH
README.md PULL
•
• ,2018, 2 mosaic plot
50
• ,2017, mosaic plot
https://www.slideshare.net/kazuofujimoto/2mosaic-plot-80084536
• ,2017, vcd/vcdExtra 2
https://www.slideshare.net/kazuofujimoto/use-japanese-with-
vcdvcdextra-package
• ,2017, vcd 3 long format
Gateway https://www.slideshare.net/kazuofujimoto/vcd3-long-format-
gateway
• David Meyer, Achim Zeileis, Kurt Hornik , 2007, The Strucplot Framework:
Visualizing Multi-way Contingency Tables with vcd, Journal of Statistical
Software,Vol17,
https://www.jstatsoft.org/index.php/jss/article/view/v017i03/v17i03.pdf
• Michael Friendly,2017, Working with categorical data with R and the vcd
and vcdExtra packages,
https://cran.r-project.org/web/packages/vcdExtra/vignettes/vcd-
tutorial.pdf

More Related Content

PDF
mdpress(MarkDown Press)を使ったプレゼンテーション作成
PPT
Basics of html5, data_storage, css3
PPTX
Do .egg à web
PDF
Ruby Postgres
PDF
JSplash - Adobe MAX 2009
PPTX
Chromium Embedded Framework + Go at Brooklyn JS
PDF
Combine vs RxSwift
PDF
ECMAScript.Next ECMAScipt 6
mdpress(MarkDown Press)を使ったプレゼンテーション作成
Basics of html5, data_storage, css3
Do .egg à web
Ruby Postgres
JSplash - Adobe MAX 2009
Chromium Embedded Framework + Go at Brooklyn JS
Combine vs RxSwift
ECMAScript.Next ECMAScipt 6

Similar to Wrapper to use Japanse font with vcd::mosaic and build it as pakcage (20)

PDF
Es.next
PDF
スマートフォン勉強会@関東 #11 どう考えてもdisconなものをiPhoneに移植してみた
PDF
Boosting Developer Productivity with Clang
PDF
Osol Pgsql
PDF
Hitchhiker's guide to the front end development
PPTX
Random numbers
PDF
Reutov, yunusov, nagibin random numbers take ii
PDF
Stop Monkeys Fall
PDF
FreeBSD 2014 Flame Graphs
PDF
Bash tricks
PDF
Nsd, il tuo compagno di viaggio quando Domino va in crash
PDF
Facebook Sentiment Analysis - What is Facebook Saying about Nintendo?
PDF
Spingy camp
PDF
ROS2勉強会@別府 第7章Pythonクライアントライブラリrclpy
PDF
pa-pe-pi-po-pure Python Text Processing
ODP
Css3 101
PDF
Living with garbage
PDF
Esoteric, Obfuscated, Artistic Programming in Ruby
PDF
ggplotのplotエリアで日本語ラベルを使う
PDF
Living With Garbage
Es.next
スマートフォン勉強会@関東 #11 どう考えてもdisconなものをiPhoneに移植してみた
Boosting Developer Productivity with Clang
Osol Pgsql
Hitchhiker's guide to the front end development
Random numbers
Reutov, yunusov, nagibin random numbers take ii
Stop Monkeys Fall
FreeBSD 2014 Flame Graphs
Bash tricks
Nsd, il tuo compagno di viaggio quando Domino va in crash
Facebook Sentiment Analysis - What is Facebook Saying about Nintendo?
Spingy camp
ROS2勉強会@別府 第7章Pythonクライアントライブラリrclpy
pa-pe-pi-po-pure Python Text Processing
Css3 101
Living with garbage
Esoteric, Obfuscated, Artistic Programming in Ruby
ggplotのplotエリアで日本語ラベルを使う
Living With Garbage
Ad

More from Tsuda University Institute for Mathematics and Computer Science (20)

PDF
日本社会学会95回大会報告v1.4.pdf
PDF
PDF
Landscape of CA in Japan and Educational Perspective
PDF
藤本一男発表資料日本社会学会94v1.0
PDF
PDF
vcdで日本語(3) long format が旧世界とのGateway
PDF
日本社会学会95回大会報告v1.4.pdf
Landscape of CA in Japan and Educational Perspective
藤本一男発表資料日本社会学会94v1.0
vcdで日本語(3) long format が旧世界とのGateway
Ad

Recently uploaded (20)

PPTX
865628565-Pertemuan-2-chapter-03-NUMERICAL-MEASURES.pptx
PPTX
PPT for Diseases (1)-2, types of diseases.pptx
PPTX
Chapter security of computer_8_v8.1.pptx
PPTX
chuitkarjhanbijunsdivndsijvndiucbhsaxnmzsicvjsd
PPTX
cyber row.pptx for cyber proffesionals and hackers
PDF
Teal Blue Futuristic Metaverse Presentation.pdf
PPTX
Sheep Seg. Marketing Plan_C2 2025 (1).pptx
PPTX
machinelearningoverview-250809184828-927201d2.pptx
PDF
CS3352FOUNDATION OF DATA SCIENCE _1_MAterial.pdf
PDF
Hikvision-IR-PPT---EN.pdfSADASDASSAAAAAAAAAAAAAAA
PPTX
cp-and-safeguarding-training-2018-2019-mmfv2-230818062456-767bc1a7.pptx
PPTX
Capstone Presentation a.pptx on data sci
PPTX
Hushh.ai: Your Personal Data, Your Business
PPTX
transformers as a tool for understanding advance algorithms in deep learning
PPTX
1 hour to get there before the game is done so you don’t need a car seat for ...
PDF
Book Trusted Companions in Delhi – 24/7 Available Delhi Personal Meeting Ser...
PDF
technical specifications solar ear 2025.
PPTX
DIGITAL DESIGN AND.pptx hhhhhhhhhhhhhhhhh
PPTX
PPT for Diseases.pptx, there are 3 types of diseases
PPTX
indiraparyavaranbhavan-240418134200-31d840b3.pptx
865628565-Pertemuan-2-chapter-03-NUMERICAL-MEASURES.pptx
PPT for Diseases (1)-2, types of diseases.pptx
Chapter security of computer_8_v8.1.pptx
chuitkarjhanbijunsdivndsijvndiucbhsaxnmzsicvjsd
cyber row.pptx for cyber proffesionals and hackers
Teal Blue Futuristic Metaverse Presentation.pdf
Sheep Seg. Marketing Plan_C2 2025 (1).pptx
machinelearningoverview-250809184828-927201d2.pptx
CS3352FOUNDATION OF DATA SCIENCE _1_MAterial.pdf
Hikvision-IR-PPT---EN.pdfSADASDASSAAAAAAAAAAAAAAA
cp-and-safeguarding-training-2018-2019-mmfv2-230818062456-767bc1a7.pptx
Capstone Presentation a.pptx on data sci
Hushh.ai: Your Personal Data, Your Business
transformers as a tool for understanding advance algorithms in deep learning
1 hour to get there before the game is done so you don’t need a car seat for ...
Book Trusted Companions in Delhi – 24/7 Available Delhi Personal Meeting Ser...
technical specifications solar ear 2025.
DIGITAL DESIGN AND.pptx hhhhhhhhhhhhhhhhh
PPT for Diseases.pptx, there are 3 types of diseases
indiraparyavaranbhavan-240418134200-31d840b3.pptx

Wrapper to use Japanse font with vcd::mosaic and build it as pakcage

  • 3. • 65 2 mosaic plot • 66 vcd/vcdExtra 2 • 67 vcd (3) long format Gateway • Slide share • vcd::mosaic base::mosaicplot • • • ….
  • 4. my.largs <- list(gp_labels = gpar(fontsize =10, fon;amily = "sans"), gp_varnames = gpar(fontsize = 12, fon;amily = "sans"), gp_text=gpar(fontsize =10, fon;amily = "sans")) my.main <- gpar(fontsize = 14,fon;amily = "sans") # for main Ctle my.sub <- gpar(fontsize = 10,fon;amily = "sans") # for sub Ctle text_gp <- gpar(fontsize = 12,fon;amily = "sans")# for facet # wapper of mosaic basic wrapper # mosaic_jp <- funcCon(.tbl,...){ mosaic(.tbl, labeling_args=my.largs, main_gp = my.main, sub_gp = my.sub, ...) } mosaic
  • 5. # colset is the col name of RColorbrewer ex: "Pastel1", "Blues" # library(RColorBrewer) # display.brewer.all(n=10, exact.n=FALSE) # you can see the color palette mosaic_jp1 <- function(.tbl,main="mosaic_jp1",colset="Set3",...){ nc <- (dim(.tbl))[2] mosaic(.tbl,gp=gpar(fill=brewer.pal(nc,colset),col=0), margins = c(left = 5,top = 4), labeling_args=my.largs, main_gp = my.main, sub_gp = my.sub, rot_labels = c(left = 0, top = 45,right=0), keep_aspect_ratio=FALSE, # main=main, labeling = labeling_values) } mosaic_jp1 mosaic_jp2
  • 6. • • Wrapper • function • .R source() • Package
  • 7. Package …. • R19.x Windows• … Mac• CRAN• • • ……
  • 14. • Build → Install & Restart
  • 18. GitHub OK • iMac SSD MacBook Dropbox • R/RStudio Git ( Mac ….) • vcdJp Git Build • Install & Restart vcdJp •
  • 19. • mac RStudio Build • Dropbox • GitHub PUSH PUSH …. • CRAN
  • 22. • ,2018, 2 mosaic plot 50 • ,2017, mosaic plot https://www.slideshare.net/kazuofujimoto/2mosaic-plot-80084536 • ,2017, vcd/vcdExtra 2 https://www.slideshare.net/kazuofujimoto/use-japanese-with- vcdvcdextra-package • ,2017, vcd 3 long format Gateway https://www.slideshare.net/kazuofujimoto/vcd3-long-format- gateway • David Meyer, Achim Zeileis, Kurt Hornik , 2007, The Strucplot Framework: Visualizing Multi-way Contingency Tables with vcd, Journal of Statistical Software,Vol17, https://www.jstatsoft.org/index.php/jss/article/view/v017i03/v17i03.pdf • Michael Friendly,2017, Working with categorical data with R and the vcd and vcdExtra packages, https://cran.r-project.org/web/packages/vcdExtra/vignettes/vcd- tutorial.pdf