getArea reports the area of a RasterLayer object using the pixel
counting method, or the area of a SpatialPolygons object using rgeos::gArea
Either a RasterLayer or SpatialPolygons object. For a RasterLayer, no data value should be NA
Optional. Value of the cells in a RasterLayer to be counted
The total area of the cells of interest in km2
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.