R/plot.tab.R
plot.tab.Rd
Plot a frequency or cumulative frequency table
# S3 method for tab plot(x, fill = "deepskyblue2", size = 3.5, ...)
An object of class tab
tab
Fill color for bars
numeric. Size of bar text labels.
Parameters passed to a function
a ggplot2 graph
tbl1 <- tab(cars74, carb) plot(tbl1) tbl2 <- tab(cars74, carb, sort = TRUE) plot(tbl2) tbl3 <- tab(cars74, carb, cum=TRUE) plot(tbl3)