isomap2raster: convert columns of an ISOMAP isoscape to a raster object

View source: R/isotope-maneuvers.R

isomap2rasterR Documentation

convert columns of an ISOMAP isoscape to a raster object

Description

Just simple conversion, but nice to have this in a brief function

Usage

isomap2raster(isoscape, column, Proj = raster::projection(get_wrld_simpl()))

Arguments

isoscape

the data frame of prediction.txt from ISOMAP. The latitude column must be named "lat" and the longitude column must be named "long".

column

the name of the column to turn into a raster object. This should be a quoted string, like "predkrig".

Proj

the desired projection. By default it is raster::projection(get_wrld_simpl()), i.e. the same projection as the wrld_simpl map.

Examples

isorast <- isomap2raster(isomap_job54152_prediction, "predreg")
isorast

gaiah documentation built on April 28, 2023, 1:11 a.m.