[R-sig-Geo] rescaling spatstat owin window

jquets rsiggeo jquets.rsiggeo at gmail.com
Mon Sep 22 14:32:13 CEST 2014


Hi Marcelino,

by rescaling I mean changing the size of the polygon without changing its
shape,

so affine seems indeed what I'm looking for,

thanks!
Jan

2014-09-22 14:14 GMT+02:00 Marcelino de la Cruz <marcelino.delacruz at upm.es>:

> It depends on what do you exactly mean by "rescale". May be with
> dilation() or affine():
>
>  plot(letterR, xlim=c(0,10), ylim=c(0,10), main="")
>  plot(dilation(letterR, .2), add=T, border=2)
>  plot(affine(letterR, mat=diag(c(2,2)),vec=c(-2,-.65)), add=T, border=3)
>
> Cheers,
>
> Marcelino
>
>
>
> El 22/09/2014 a las #4, jquets rsiggeo escribió:
>
>> Dear all,
>>
>> 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)?
>>
>> kind regards,
>> Jan
>>
>>         [[alternative HTML version deleted]]
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>
>>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list