isomap2raster {gaiah} | R 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
[Package gaiah version 0.0.5 Index]