Last active
December 23, 2015 03:39
-
-
Save epijim/6574349 to your computer and use it in GitHub Desktop.
Simple example - a two way table of categorical variables, with size proportional to number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(vcd) | |
# create a matrix with two categorical variables. | |
VECTOR <- xtabs(~ Var1 + Var2, data = Dataframe) | |
# create mosiac | |
mosaic(VECTOR, gp = shading_max, split_vertical = TRUE) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment