plot.table {base} | R Documentation |
This is a method of the generic plot
function for
(contingency) table
objects. Whereas for two- and more
dimensional tables, a mosaicplot
is drawn,
one-dimensional ones are plotted “bar like”.
plot.table(x, type = "h", ylim = c(0, max(x)), lwd = 2,
xlab = NULL, ylab = deparse(substitute(x)), frame.plot = is.num, ...)
x |
a |
type |
plotting type. |
ylim |
range of y-axis. |
lwd |
line width of bars when |
xlab , ylab |
x- and y-axis labels. |
frame.plot |
logical indicating if a frame ( |
... |
further graphical arguments, see |
The current implementation (R 1.2) is somewhat experimental and will be improved and extended.
plot.factor
, the plot
method for factors.
## 1-d tables
(Poiss.tab <- table(N = rpois(200, lam= 5)))
plot(Poiss.tab, main = "plot(table(rpois(200, lam=5)))")
data(state)
plot(table(state.division))
## 4-D :
data(Titanic)
plot(Titanic, main ="plot(Titanic, main= *)")