Last chance! 50% off unlimited learning
Sale ends in
"affine"(X, mat=diag(c(1,1)), vec=c(0,0), ...)
"shift"(X, vec=c(0,0), ..., origin=NULL)
"rotate"(X, angle=pi/2, ..., centre=NULL)
"scalardilate"(X, f, ...)
"rescale"(X, s, unitname)
"lpp"
).s
times the old units.
"centroid"
, "midpoint"
and "bottomleft"
.
Partially matched.
"centroid"
, "midpoint"
or "bottomleft"
).
The default is the coordinate origin c(0,0)
.
unitname<-
"lpp"
)
representing the
result of applying the geometrical transformation.
affine
,
shift
,
rotate
,
rescale
and
scalardilate
applicable to objects of class "lpp"
. All of these functions
perform geometrical transformations on the object X
,
except for rescale
, which simply rescales the units of length.
lpp
.
Generic functions
affine
,
shift
,
rotate
,
scalardilate
,
rescale
.
X <- rpoislpp(2, simplenet)
U <- rotate(X, pi)
stretch <- diag(c(2,3))
Y <- affine(X, mat=stretch)
shear <- matrix(c(1,0,0.6,1),ncol=2, nrow=2)
Z <- affine(X, mat=shear, vec=c(0, 1))
Run the code above in your browser using DataLab