swh:1:snp:1d6f9c912933e835b749aef1f8077112982fe84e
Raw File
Tip revision: f2b1a2b0b321bb40a034d89a636072cd71ad25cc authored by HwB on 21 November 2011, 00:00:00 UTC
version 0.8.6
Tip revision: f2b1a2b
meshgrid.Rd
\name{meshgrid}
\alias{meshgrid}
\title{
  Generate a Mesh Grid
}
\description{
  Generate two matrices for use in three-dimensional plots.
}
\usage{
meshgrid(x, y = x)
}
\arguments{
  \item{x}{numerical vector, represents points along the x-axis.}
  \item{y}{numerical vector, represents points along the y-axis.}
}
\details{
  The rows of the output array X are copies of the vector x;
  columns of the output array Y are copies of the vector y.
}
\value{
  Returns two matrices as a list with \code{X} and \code{Y} components.
}
\note{
  The three-dimensional variant \code{meshgrid(x, y, z)} is not yet implemented.
}
\seealso{
\code{\link{outer}}
}
\examples{
meshgrid(1:5)$X
meshgrid(c(1, 2, 3), c(11, 12))
}
\keyword{ array }
back to top