Skip to contents

Provides a summary representation of an indicator_map object, designed for user-friendly display in the console.

Usage

# S3 method for class 'indicator_map'
print(x, n = 10, ...)

Arguments

x

An indicator_map object.

n

Integer specifying the number of rows of data to display.

...

Additional arguments.

Examples

library(sf)
#> Linking to GEOS 3.10.2, GDAL 3.4.1, PROJ 8.2.1; sf_use_s2() is TRUE
obs_rich_map <- obs_richness_map(example_cube_1)
print(obs_rich_map)
#> Gridded biodiversity indicator map
#> 
#> Name of Indicator: Observed Species Richness 
#> 
#> Map of Europe 
#> 
#> Projected CRS: EPSG:4326 
#> 
#> Coordinate range:
#>      xmin      ymin      xmax      ymax 
#>  6.053729 54.375000 16.375000 58.375850 
#> 
#> Grid cell size: 1 km^2 
#> Number of cells: 46 
#> 
#> Observation years: 1862 - 2023 
#> Total years with observations: 125 
#> 
#> Number of species represented: 106 
#> Number of families represented: 31 
#> 
#> Kingdoms represented: Animalia 
#> 
#> First 10 rows of data (use n = to show more):
#> 
#> # A tibble: 46 × 3
#>    cellid area_km2 diversity_val
#>     <int>   [km^2]         <int>
#>  1     10    7114.            43
#>  2     11    7114.            NA
#>  3     23    6936.            64
#>  4     24    6936.            NA
#>  5     25    6936.            NA
#>  6     26    6936.            NA
#>  7     35    6756.             8
#>  8     36    6756.            NA
#>  9     37    6756.            NA
#> 10     38    6756.            NA
#> # ℹ 36 more rows