data(hessen)
# show impact of the chosen parameters
boundary(hessen$villages, density = 0.1, grid = 20
, manual = cbind(x = c(8.3, 9.2), y = c(49.9, 50.0)))
# return coordinates
boundary(hessen$villages, plot = FALSE)
# abstract example, showing tightness in action
oldpar<-par("mfrow")
par(mfrow = c(1,3))
p <- cbind(c(1:10, 1:10), c(1:10, 10:1))
boundary(p, density = 0.005, grid = 20, tightness = "auto")
boundary(p, density = 0.005, grid = 20, tightness = 5)
boundary(p, density = 0.005, grid = 20, tightness = 3)
par(mfrow = oldpar)
Run the code above in your browser using DataLab