View source: R/plot.crosstab.R
plot.crosstab | R Documentation |
This function plots the results of a calculated two-way frequency table.
## S3 method for class 'crosstab' plot(x, size = 3.5, ...)
x |
An object of class |
size |
numeric. Size of bar text labels. |
... |
no currently used. |
a ggplot2 graph
tbl <- crosstab(cars74, cyl, gear, type = "freq") plot(tbl) tbl <- crosstab(cars74, cyl, gear, type = "colpercent") plot(tbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.