Skip to content
Prev 8352 / 29559 Next

circular holes in rectangular polygon

Jan Quets Jan.Quets at ua.ac.be writes:
library(spatstat)
R <- owin(c(0,4),c(0,5))
O <- disc(radius=1, centre=c(2, 3))
W <- complement.owin(O, frame=R)
plot(W)