1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
\name{plot.pheno}
\alias{plot.pheno}
\title{Plot a phenotype distribution}
\description{
Plots a histogram or barplot of the data for a phenotype from an
experimental cross.
}
\usage{
\method{plot}{pheno}(x, pheno.col=1, \dots)
}
\arguments{
\item{x}{An object of class \code{cross}. See
\code{\link[qtl]{read.cross}} for details.}
\item{pheno.col}{The phenotype column to plot: a numeric index, or the
phenotype name as a character string.}
\item{\dots}{Passed to \code{\link[graphics]{hist}} or
\code{\link[graphics]{barplot}}.}
}
\value{None.}
\details{
Numeric phenotypes are displayed as histograms with approximately
\eqn{2\sqrt{n}}{2 sqrt(n)} bins. Phenotypes that are factors or that
have very few unique values are displayed as barplots.
}
\examples{
data(fake.bc)
plot(fake.bc, pheno.col=1)
plot(fake.bc, pheno.col=3)
}
\seealso{ \code{\link[qtl]{plot.cross}}, \code{\link[qtl]{plot.map}},
\code{\link[qtl]{plot.missing}},
\code{\link[graphics]{hist}}, \code{\link[graphics]{barplot}} }
\author{Karl W Broman, \email{kbroman@biostat.wisc.edu} }
\keyword{hplot}
|