Learn R Programming

qacBase (version 1.0.3)

plot.crosstab: Plot a crosstab object

Description

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

Usage

# S3 method for 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

Run this code
# NOT RUN {
tbl <- crosstab(cars74, cyl, gear, type = "freq")
plot(tbl)

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

Run the code above in your browser using DataLab