The Mondrian like mosaic plot

library(vcdExtra)
str(HospVisits)
##  table [1:3, 1:3] 43 6 9 16 11 18 3 10 16
##  - attr(*, "dimnames")=List of 2
##   ..$ visit: chr [1:3] "Regular" "Infrequent" "Never"
##   ..$ stay : chr [1:3] "2-9" "10-19" "20+"
HospVisits
##             stay
## visit        2-9 10-19 20+
##   Regular     43    16   3
##   Infrequent   6    11  10
##   Never        9    18  16
mosaic(HospVisits, gp = shading_Friendly())

plot of chunk unnamed-chunk-3

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

Post Navigation