[R-sig-Geo] rescale spatstat owin
adrian.baddeley at uwa.edu.au
Tue Sep 23 12:13:10 CEST 2014
Jan Quets <jquets.rsiggeo at gmail.com> writes:
> does anybody know how to rescale a spatstat owin window (i.e. multiplying
> all x and y coordinates of the polygon boundary with a certain factor)?
where W is your window and 'f' is the scaling factor (a single number). This will multiply all coordinates
by the number f. The unit of length will be unchanged (so the resulting window is physically larger than
the original, if f > 1).
If you want to rescale a window from one unit of length to another, use 'rescale'.
For example if the window coordinates were given in metres and you want to convert them to kilometres,
rescale(W, 1000, unitname="km")
The result of 'rescale' is physically equivalent to the original, but is expressed in different units.
See help(scalardilate) and help(rescale).
Prof Adrian Baddeley FAA
University of Western Australia
More information about the R-sig-Geo