Apply Scalar Dilation
Applie scalar dilation to a plane geometrical object, such as a point pattern or a window, relative to a specified origin.
scalardilate(X, f, ...)
## S3 method for class 'owin': scalardilate(X, f, \dots, origin=NULL)
## S3 method for class 'ppp': scalardilate(X, f, \dots, origin=NULL)
## S3 method for class 'default': scalardilate(X, f, \dots)
- Any suitable dataset representing a two-dimensional
object, such as a point pattern (object of class
"ppp"), or a window (object of class
- Scalar dilation factor. A finite number greater than zero.
- Ignored by the methods.
- Origin for the scalar dilation. Either a vector of 2 numbers,
or one of the character strings
This command performs scalar dilation of the object
by the factor
f relative to the origin specified by
scalardilate is generic, with methods for
"owin") and point patterns (class
and a default method.
If the argument
origin is not given,
then every spatial coordinate is multiplied by the factor
origin is given, then scalar dilation is performed
relative to the specified origin. Effectively,
X is shifted
origin is moved to
c(0,0), then scalar dilation
is performed, then the result is shifted so that
This command is a special case of an affine transformation:
- Another object of the same type, representing the result of applying the scalar dilation.
plot(letterR) plot(scalardilate(letterR, 0.7, origin="bot"), col="red", add=TRUE)