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

Description Usage Arguments Examples

View source: R/isotope-maneuvers.R

Description

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

Usage

1
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

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

gaiah documentation built on July 8, 2020, 6:12 p.m.