
table
Objectsplot
function for
(contingency) table
objects. Whereas for two- and more
dimensional tables, a mosaicplot
is drawn,
one-dimensional ones are plotted as bars.
"plot"(x, type = "h", ylim = c(0, max(x)), lwd = 2, xlab = NULL, ylab = NULL, frame.plot = is.num, ...)
"points"(x, y = NULL, type = "h", lwd = 2, ...)
"lines"(x, y = NULL, type = "h", lwd = 2, ...)
table
(like) object.NULL
: there to protect against incorrect calls.type = "h"
is used in the 1D case.plot.default
.
axes = FALSE
is accepted.plot.factor
, the plot
method for factors.
## 1-d tables
(Poiss.tab <- table(N = stats::rpois(200, lambda = 5)))
plot(Poiss.tab, main = "plot(table(rpois(200, lambda = 5)))")
plot(table(state.division))
## 4-D :
plot(Titanic, main ="plot(Titanic, main= *)")
Run the code above in your browser using DataLab