\Header{plot.table}{Plot Methods for `table' Objects}
\keyword{hplot}{plot.table}
\keyword{category}{plot.table}
\begin{Description}\relax
This is a method of the generic \code{plot} function for
(contingency) \code{\Link{table}} objects.  Whereas for two- and more
dimensional tables, a \code{\Link{mosaicplot}} is drawn,
one-dimensional ones are plotted ``bar like''.\end{Description}
\begin{Usage}
\begin{verbatim}
plot.table(x, type = "h", ylim = c(0, max(x)), lwd = 2,
           xlab = NULL, ylab = deparse(substitute(x)), frame.plot = is.num, ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] a \code{\Link{table}} (like) object.
\item[\code{type}] plotting type.
\item[\code{ylim}] range of y-axis.
\item[\code{lwd}] line width of bars when \code{type = "h"} is used.
\item[\code{xlab, ylab}] x- and y-axis labels.
\item[\code{frame.plot}] logical indicating if a frame (\code{\Link{box}})
should be drawn.  Default are ~~Describe \code{frame.plot} here~~ 
\item[\code{...}] further graphical arguments, see \code{\Link{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{\Link{plot.factor}}, the \code{\Link{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)))")

data(state)
plot(table(state.division))

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

\end{ExampleCode}
\end{Examples}

