Jan Quets <jquets.rsig...@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)?
scalardilate(W, f) 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) or better 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 _______________________________________________ R-sig-Geo mailing list R-sig-Geo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-geo