dgsetres | R Documentation |
Set the resolution of a dggs object
dgsetres(dggs, res)
dggs |
A dggs object from dgconstruct(). |
res |
Resolution. Must be in the range [0,30]. Larger values represent finer resolutions. Appropriate resolutions can be found with dg_closest_res_to_area(), dg_closest_res_to_spacing(), and dg_closest_res_to_cls(). Default is 9, which corresponds to a cell area of ~2600 sq km and a cell spacing of ~50 km. Default: 9. |
Returns a dggs object which can be passed to other dggridR functions
library(dggridR)
dggs <- dgconstruct(res=20)
dggs <- dgsetres(dggs,10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.