https://github.com/cran/spatstat
Tip revision: 3b1dcf8f6e00231f96d1d5a9910c6d02003fc8d7 authored by Adrian Baddeley on 26 May 2006, 16:14:51 UTC
version 1.9-1
version 1.9-1
Tip revision: 3b1dcf8
shift.psp.Rd
\name{shift.psp}
\alias{shift.psp}
\title{Apply Vector Translation To Line Segment Pattern}
\description{
Applies a vector shift to a line segment pattern.
}
\synopsis{
\method{shift}{psp}(X, \dots)
}
\usage{
\method{shift}{psp}(X, vec=c(0,0), \dots)
}
\arguments{
\item{X}{Line Segment pattern (object of class \code{"psp"}).}
\item{vec}{Vector of length 2 representing a translation.}
\item{\dots}{Ignored}
}
\value{
Another line segment pattern (of class \code{"psp"}) representing the
result of applying the vector shift.
}
\details{
The line segment pattern, and its window, are
translated by the vector \code{vec}.
This is a method for the generic function \code{\link{shift}}.
}
\seealso{
\code{\link{shift}},
\code{\link{shift.owin}},
\code{\link{shift.ppp}},
\code{\link{rotate}},
\code{\link{affine}}
}
\examples{
X <- psp(runif(10), runif(10), runif(10), runif(10), window=owin())
plot(X, col="red")
Y <- shift(X, c(0.05,0.05))
plot(Y, add=TRUE, col="blue")
}
\author{Adrian Baddeley
\email{adrian@maths.uwa.edu.au}
\url{http://www.maths.uwa.edu.au/~adrian/}
and Rolf Turner
\email{rolf@math.unb.ca}
\url{http://www.math.unb.ca/~rolf}
}
\keyword{spatial}
\keyword{manip}