I need calculate fragmentation metrics from raster in an hidrografic basin. Someone knows a package from R for calculate: Number of fragments, total of fragments, distance of fragments and form of fragments?
I would recommend the freely available FRAGSTATS software; it will allow you to do this very easily. The page also offers an R package for handling the output data if you so desire: