| methods.layered | R Documentation |
Methods for geometrical transformations of
layered objects (class "layered").
## S3 method for class 'layered'
c(...)
## S3 method for class 'layered'
shift(X, vec=c(0,0), ...)
## S3 method for class 'layered'
rotate(X, ..., centre=NULL)
## S3 method for class 'layered'
affine(X, ...)
## S3 method for class 'layered'
reflect(X)
## S3 method for class 'layered'
flipxy(X)
## S3 method for class 'layered'
rescale(X, s, unitname)
## S3 method for class 'layered'
scalardilate(X, ...)
X |
Object of class |
... |
Arguments passed to the relevant methods
when applying the operation to each layer of |
s |
Rescaling factor passed to the relevant method for
|
vec |
Shift vector (numeric vector of length 2). |
centre |
Centre of rotation.
Either a vector of length 2, or a character string
(partially matched to |
unitname |
Optional. New name for the unit of length.
A value acceptable to the function |
These are methods for the generic functions
c,
shift,
rotate,
reflect,
affine,
rescale,
scalardilate and
flipxy
for the class of layered objects.
A layered object represents data that should be plotted in
successive layers, for example, a background and a foreground.
See layered.
The method for c can be used to concatenate two or more
layered objects ... into a single layered object, retaining the plot
arguments.
The other methods apply geometrical operations to each of the layers
of the layered object X.
Another object of class "layered".
and \rolf
layered
B <- owin(c(5500, 9000), c(2500, 7400))
L <- layered(Window(demopat), unmark(demopat)[B])
plot(L)
plot(rotate(L, pi/4))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.