Try this (specifying the center of rotation):

w2 <- maptools::elide(w1, rotate=30, center = coordinates(w1), scale=TRUE)



Cheers,
Roman



On Mon, Apr 4, 2011 at 4:58 PM, gianni lavaredo
<gianni.lavaredo@gmail.com>wrote:

> thanks but elide doesn't rotate the square around the center point
>
> w <- owin(c(0,1),c(0,1))
> w1 <- as(w, "SpatialPolygons")
> plot(w1)
> w2 <- elide(w1, rotate=30, scale=TRUE)
> plot(w2, add=T)
>
> gianni
>
>
>
>
> On Mon, Apr 4, 2011 at 4:41 PM, Roman Luštrik <roman.lustrik@gmail.com>wrote:
>
>> How does maptools::elide work for you?
>>
>>
>>
>>
>> On Mon, Apr 4, 2011 at 4:37 PM, gianni lavaredo <
>> gianni.lavaredo@gmail.com> wrote:
>>
>>> Dear Reasearcher,
>>>
>>> I wish to rotate randomly a owin square aroud the centre of owin square.
>>> I
>>> try to use "rotate" in spatstat but it's not the function i need.
>>>
>>> thanks Gianni
>>>
>>>        [[alternative HTML version deleted]]
>>>
>>> _______________________________________________
>>> R-sig-Geo mailing list
>>> R-sig-Geo@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>>>
>>
>>
>>
>> --
>> In God we trust, all others bring data.
>>
>
>


-- 
In God we trust, all others bring data.

	[[alternative HTML version deleted]]

