sapa.smooth: Smoothing function for SAPA data

Description Usage Arguments Note Author(s) References Examples

Description

Although not necessary for graphics, smoothing the data makes an overall more pleasing map. The smooth function takes a normal “kernel” and applies it to every cell. That is, nearby cells are weighted as a function of the density of the normal curve. The default value of 9 means that the kernel is a 9 x 9 grid. Each grid step is taken to be half a sd of the normal curve. The miss parameter specifies how much to weight cells with no observations. By increasing the weight, we are increasing the tendency to plot average values for missing cells.

Usage

1
sapa.smooth(grid, size = 11, miss = 0.05, w = NULL)

Arguments

grid
size
miss
w

Note

Please file bugs at https://github.com/frenchja/SAPATools/issues.

Author(s)

William Revelle <revelle@northwestern.edu> Maintainer: Jason A. French

References

https://sapa-project.org/r/

Examples

1
# iq.smooth <-  sapa.smooth(iq.grid,size=11,miss=.05)

frenchja/SAPATools documentation built on May 16, 2019, 2:47 p.m.