# NOT RUN {
W <- Window(chorley)
opa <- par(mfrow=c(2,4))
plot(as.mask(W, dimyx=16), col="grey", main="as.mask")
plot(W, add=TRUE, lwd=3, border="red")
plot(owin2mask(W, "i", dimyx=16), col="grey", main="inside")
plot(W, add=TRUE, lwd=3, border="red")
plot(owin2mask(W, "c", dimyx=16), col="grey", main="cover")
plot(W, add=TRUE, lwd=3, border="red")
plot(owin2mask(W, "b", dimyx=16), col="grey", main="boundary")
plot(W, add=TRUE, lwd=3, border="red")
plot(as.mask(complement.owin(W), dimyx=16), col="grey",
main="as.mask(complement.owin)")
plot(W, add=TRUE, lwd=3, border="red")
plot(owin2mask(W, "o", dimyx=16), col="grey", main="outside")
plot(W, add=TRUE, lwd=3, border="red")
plot(owin2mask(W, "u", dimyx=16), col="grey", main="uncover")
plot(W, add=TRUE, lwd=3, border="red")
plot(owin2mask(W, "b", dimyx=16), col="grey", main="boundary")
plot(W, add=TRUE, lwd=3, border="red")
par(opa)
# }
Run the code above in your browser using DataLab