powered by
Apply geometrical transformations to a linear network.
# S3 method for linnet affine(X, mat=diag(c(1,1)), vec=c(0,0), ...) # S3 method for linnet flipxy(X) # S3 method for linnet shift(X, vec=c(0,0), ..., origin=NULL) # S3 method for linnet rotate(X, angle=pi/2, ..., centre=NULL) # S3 method for linnet scalardilate(X, f, ...) # S3 method for linnet rescale(X, s, unitname)
# S3 method for linnet flipxy(X)
# S3 method for linnet shift(X, vec=c(0,0), ..., origin=NULL)
# S3 method for linnet rotate(X, angle=pi/2, ..., centre=NULL)
# S3 method for linnet scalardilate(X, f, ...)
# S3 method for linnet rescale(X, s, unitname)
Another linear network (of class "linnet") representing the result of applying the geometrical transformation.
"linnet"
These functions are methods for the generic functions affine, flipxy, shift, rotate, rescale and scalardilate applicable to objects of class "linnet".
affine
flipxy
shift
rotate
rescale
scalardilate
All of these functions perform geometrical transformations on the object X, except for rescale, which simply rescales the units of length.
X
linnet and as.linnet.
linnet
as.linnet
Generic functions affine, flipxy, shift, rotate, scalardilate, rescale.
U <- rotate(simplenet, pi) stretch <- diag(c(2,3)) Y <- affine(simplenet, mat=stretch) shear <- matrix(c(1,0,0.6,1),ncol=2, nrow=2) Z <- affine(simplenet, mat=shear, vec=c(0, 1))
Run the code above in your browser using DataLab