\HeaderA{plot.table}{Plot Methods for `table' Objects}{plot.table}
\keyword{hplot}{plot.table}
\keyword{category}{plot.table}
\begin{Description}\relax
This is a method of the generic \code{plot} function for
(contingency) \code{\LinkA{table}{table}} objects.  Whereas for two- and more
dimensional tables, a \code{\LinkA{mosaicplot}{mosaicplot}} is drawn,
one-dimensional ones are plotted \dQuote{bar like}.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'table':
plot(x, type = "h", ylim = c(0, max(x)), lwd = 2,
     xlab = NULL, ylab = NULL, frame.plot = is.num, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a \code{\LinkA{table}{table}} (like) object.
\item[\code{type}] plotting type.
\item[\code{ylim}] range of y-axis.
\item[\code{lwd}] line width for bars when \code{type = "h"} is used in the 1D case.
\item[\code{xlab, ylab}] x- and y-axis labels.
\item[\code{frame.plot}] logical indicating if a frame (\code{\LinkA{box}{box}})
should be drawn in the 1D case.  Defaults to true when \code{x} has
\code{\LinkA{dimnames}{dimnames}} coerce-able to numbers.
\item[\code{...}] further graphical arguments, see \code{\LinkA{plot.default}{plot.default}}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The current implementation (R 1.2) is somewhat experimental and will
be improved and extended.
\end{Details}
\begin{SeeAlso}\relax
\code{\LinkA{plot.factor}{plot.factor}}, the \code{\LinkA{plot}{plot}} method for factors.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## 1-d tables
(Poiss.tab <- table(N = rpois(200, lam= 5)))
plot(Poiss.tab, main = "plot(table(rpois(200, lam=5)))")

plot(table(state.division))

## 4-D :
plot(Titanic, main ="plot(Titanic, main= *)")

\end{ExampleCode}
\end{Examples}

