\HeaderA{hist-methods}{Histogram for DEDS Objects}{hist.Rdash.methods}
\aliasA{hist}{hist-methods}{hist}
\aliasA{hist.DEDS}{hist-methods}{hist.DEDS}
\keyword{hplot}{hist-methods}
\begin{Description}\relax
The function \code{hist.DEDS} produces histograms of unadjusted
p-values for \code{\LinkA{DEDS-class}{DEDS.Rdash.class}} objects.
\end{Description}
\begin{Usage}
\begin{verbatim}
## S3 method for class 'DEDS':
hist(x, subset=c(1:nrow(x$stats)), ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{x}] An object of \code{\LinkA{DEDS}{DEDS}}, produced by
\code{\LinkA{deds.pval}{deds.pval}}.
\item[\code{subset}] A numeric vector indicating the subset of points to be plotted.
\item[\code{...}] Further graphical parameters, for example, \code{"col"},
\code{"border"}, \code{"main"}, \code{"nclass"}.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
The function \code{hist.DEDS} implements a S3 method of
\code{\LinkA{hist}{hist}} for \code{\LinkA{DEDS}{DEDS}}. The \code{\LinkA{DEDS}{DEDS}}
class is a simple list-based class to store DEDS results and
\code{hist.DEDS} is used for a DEDS object that is created  by
the function \code{\LinkA{deds.pval}{deds.pval}}. The list contains a "stat"
component, which stores unadjusted p-values from various statistical
models. The function \code{hist.DEDS} extracts the "stat" component
and produces a histgram of the unadjusted p-values for each model.

For DEDS objects that are created by functions
\code{\LinkA{deds.stat}{deds.stat}} and \code{\LinkA{deds.stat.linkC}{deds.stat.linkC}}, the "stat"
matrix consists of different types of statistics. For graphical
dispaly of these statistics, the user can use \code{\LinkA{qqnorm.DEDS}{qqnorm.DEDS}} and
\code{\LinkA{pairs.DEDS}{pairs.DEDS}}.
\end{Details}
\begin{Author}\relax
Yuanyuan Xiao, \email{yxiao@itsa.ucsf.edu}, \\
Jean Yee Hwa Yang, \email{jean@biostat.ucsf.edu}.
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{deds.stat}{deds.stat}}, \code{\LinkA{deds.pval}{deds.pval}},
\code{\LinkA{deds.stat.linkC}{deds.stat.linkC}}, \code{\LinkA{pairs.DEDS}{pairs.DEDS}},
\code{\LinkA{qqnorm.DEDS}{qqnorm.DEDS}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

\end{ExampleCode}
\end{Examples}

