make_xtab | R Documentation |
Create a nicely formatted 2x2 table for categorical variables.
make_xtab(data, cat_var1, cat_var2)
data |
dataset that contains the categorical variables |
cat_var1 |
name of the categorical variable as a string |
cat_var2 |
name of the categorical variable as a string |
none
make_xtab(ggplot2::diamonds, "cut", "color")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.