PlotRasterKernSlice: Wrapper function to create, slice, and plot a Gaussian Kernel...

Description Usage Arguments Value

Description

Wrapper function to create, slice, and plot a Gaussian Kernel Raster

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PlotRasterKernSlice(
  raster_in = NULL,
  sigma = 1,
  nrow = 21,
  shift_n = 0,
  cell_size = 30,
  title = NULL,
  normalize = FALSE,
  dnorm_line = FALSE
)

Arguments

raster_in

Raster*, overrides sigma and nrow below when provided. Default is NULL which then uses the parameters below to create a Raster.

sigma

numeric, sigma (or sd) of distribution - scaled to cell_size

nrow

numeric, number of rows/columns in RasterLayer

shift_n

numberic, shift in lat/long origin position

cell_size

numeric, cell size of RasterLayer

title

character, main title. If not provided, a default is used.

normalize

logical, whether or not to normalize values to sum to 1

dnorm_line

logical, whether or not to add a normal distribution curve to plot. The curve will be scaled to the cell_size and sigma provided.

Value

ggplot


Blakemassey/gisr documentation built on Aug. 30, 2020, 12:14 a.m.