plot.tab: Plot a tab object

Description Usage Arguments Value Examples

View source: R/plot.tab.R

Description

Plot a frequency or cumulative frequency table

Usage

1
2
## S3 method for class 'tab'
plot(x, fill = "deepskyblue2", size = 3.5, ...)

Arguments

x

An object of class tab

fill

Fill color for bars

size

numeric. Size of bar text labels.

...

Parameters passed to a function

Value

a ggplot2 graph

Examples

1
2
3
4
5
6
7
8
tbl1 <- tab(cars74, carb)
plot(tbl1)

tbl2 <- tab(cars74, carb, sort = TRUE)
plot(tbl2)

tbl3 <- tab(cars74, carb, cum=TRUE)
plot(tbl3)

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