plot.crosstab: Plot a crosstab object

Description Usage Arguments Value Examples

View source: R/plot.crosstab.R

Description

This function plots the results of a calculated two-way frequency table.

Usage

1
2
## S3 method for class 'crosstab'
plot(x, size = 3.5, ...)

Arguments

x

An object of class crosstab

size

numeric. Size of bar text labels.

...

no currently used.

Value

a ggplot2 graph

Examples

1
2
3
4
5
tbl <- crosstab(cars74, cyl, gear, type = "freq")
plot(tbl)

tbl <- crosstab(cars74, cyl, gear, type = "colpercent")
plot(tbl)

Rkabacoff/qacr documentation built on March 20, 2021, 3:03 p.m.