Skip to content

Instantly share code, notes, and snippets.

@epijim
Last active December 23, 2015 03:39
Show Gist options
  • Save epijim/6574349 to your computer and use it in GitHub Desktop.
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
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