I was creating Local Convex Hull Home Ranges in R with the adehabitat package and am unable to figure out how to convert them into Shape files to use in ArcMap. The methods I've tried seem to require the object to be of class 'SpatialPolygonsDataFrame' or a couple others, but not class 'MCHu'(which is what the Convex Hull Home Ranges are).

How do I convert an 'MCHu' into a 'SpatialPolygonsDataFrame' or another method to convert 'MCHu' into a shapefile to export into ArcMap?

1 Answer 1


Take a look at the object class definition for "MCHu". The help indicates "The class "MCHu" is basically a list of objects of class SpatialPolygonsDataFrame, with one data frame per animal". As such, you can just extract a SpatialPolygonsDataFrame, for each animal, from the list object.


locs <- puechabonsp$relocs
nn <- LoCoH.k(locs[,1], k=12)

animal1 <- nn[[1]]

To write an sp class object to a shapefile you can use the writeOGR function in rgdal.

Alternately, to derive volumes, you could rasterize the kernel home range estimates using the "MCHu.rast" function.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.