\name{plot.traj}
\alias{plot.traj}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Plot sample trajectories of the posterior moments }
\description{
  Plots sample trajectories of the posterior moments that where saved during the forward simulation.
}
\usage{
plot.traj(traj, term, ntraj, s0, s1, ...)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
  \item{traj}{ Sample trajectories as in \code{"traj"} argument returned by \code{"read.forwsim"}.}
  \item{term}{ Terminal decisions and posterior moments for sample trajectories as returned by \code{"read.forwsim"}.}
  \item{ntraj}{ Number of trajectories to be plotted.}
  \item{s0}{Value of the posterior log-standard deviation at which both boundaries cross. The posterior mean at this point is given by \code{b[1]}.}
  \item{s1}{ Value of the posterior log-standard deviation corresponding to the posterior means \code{b[2],b[3]}.}
  \item{\dots}{ Other arguments to \code{"plot"}. Note that arguments \code{"type","xlim"} and \code{"ylim"} are set automatically so specifying them will cause an error. }
}
\details{
  Arguments \code{"type","xlim"} and \code{"ylim"} are set automatically and passed to \code{"plot"}, so specifying them will cause an error.
}
\value{ No value returned, the function is used for its side effects. }
\author{ David Rossell }
\examples{
dir <- 'C:/R/R-2.2.1/library/forwsim/data'                                  #read forward simulation output
sim1 <- read.forwsim(dir)

plot.traj(sim1$traj,sim1$term,ntraj=20,s0=-3,s1=-2.3,lwd=2)                 #plot 20 trajectories
}
\keyword{ ~kwd1 }% at least one, from doc/KEYWORDS
\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line
