plot(letterR, col="red")
plot(simplify.owin(letterR, 0.3), col="blue", add=TRUE)
W <- Window(chorley)
plot(W)
WS <- simplify.owin(W, 2)
plot(WS, add=TRUE, border="green")
points(vertices(WS))
Run the code above in your browser using DataLab