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
|
\name{mycontour}
\alias{mycontour}
\title{Contour plot of a bivariate density function}
\description{
For a general two parameter density, draws a contour graph where the
contour lines are drawn at 10 percent, 1 percent, and .1 percent of
the height at the mode.
}
\usage{
mycontour(logf,limits,data,...)
}
\arguments{
\item{logf}{function that defines the logarithm of the density}
\item{limits}{limits (xlo, xhi, ylo, yhi) where the graph is to be drawn}
\item{data}{vector or list of parameters associated with the function logpost}
\item{...}{further arguments to pass to contour}
}
\value{
A contour graph of the density is drawn
}
\author{Jim Albert}
\examples{
m=array(c(0,0),c(2,1))
v=array(c(1,.6,.6,1),c(2,2))
normpar=list(m=m,v=v)
mycontour(lbinorm,c(-4,4,-4,4),normpar)
}
\keyword{models}
|