Plot.BioClim: Visualise bioclimatic raster data and overlay sf polygons if...

View source: R/Plotting.R

Plot.BioClimR Documentation

Visualise bioclimatic raster data and overlay sf polygons if desired.

Description

Use the ggplot2 plotting engine to easily create visualisations of biolcimatic raster data - like the ones obtained using BioClim(...) - and overlay sf polygon data if desired.

Usage

Plot.BioClim(
  BioClims,
  Which = 1:19,
  SF,
  Water_Var = "Water Availability",
  ncol = 3,
  Size = 1,
  Shape = 1
)

Arguments

BioClims

SpatRast object to visualise.

Which

Numeric. Which bioclimatic variable(s) to visualise.

SF

Optional. SF object which to overlay.

Water_Var

Optional, character. Name of water availability variable in the bioclimatic variables.

ncol

Number of columns for panel arrangement of plots

Size

Optional. Size of SF overlay.

Shape

Optional. Shape of SF overlay if points.

Value

A ggplot2 object visualising a raster.

See Also

BioClim.

Examples

BC_rast <- terra::rast(system.file("extdata", "CN_BC.nc", package = "KrigR"))
Plot.BioClim(BioClims = BC_rast, Water_Var = "Soil Moisture (0-7cm)")


ErikKusch/KrigR documentation built on Feb. 17, 2025, 2:09 p.m.