Skip to contents

Create example raster for use in examples

Usage

example_raster(seed = NULL, layername = NULL)

Arguments

seed

A seed to pass to set.seed(seed)

layername

character for layer name passed to names

Value

A SpatRaster.

Examples

example_raster()
#> class       : SpatRaster 
#> dimensions  : 10, 10, 1  (nrow, ncol, nlyr)
#> resolution  : 1, 1  (x, y)
#> extent      : 0, 10, 0, 10  (xmin, xmax, ymin, ymax)
#> coord. ref. :  
#> source(s)   : memory
#> name        :   example 
#> min value   : 0.0627102 
#> max value   : 7.3352526 

example_raster(
  seed = 3.142,
  layername = "jabberwock_density"
)
#> class       : SpatRaster 
#> dimensions  : 10, 10, 1  (nrow, ncol, nlyr)
#> resolution  : 1, 1  (x, y)
#> extent      : 0, 10, 0, 10  (xmin, xmax, ymin, ymax)
#> coord. ref. :  
#> source(s)   : memory
#> name        : jabberwock_density 
#> min value   :          0.1037884 
#> max value   :          5.6719627