chull(x, y, peel=F, maxpeel=<<see below>>, onbdy=peel, tol=.0001)
If peel is TRUE, a list with components depth, hull and count.
hull <- chull(x,y) plot(x,y) polygon(x[hull],y[hull],density=0) # draw hullp <- chull(corn.rain, corn.yield, peel=T) # all hulls which <- rep(seq(p$count), p$count) # which peel for each pt s <- split(p$hull, which) plot(corn.rain, corn.yield) for(i in seq(s)) { # plot all peels j <- s[[i]] # indices of points on ith peel if (length(j)>2) polygon(corn.rain[j], corn.yield[j], density=0,lty=i) }