smoothSpatially | R Documentation |
Uses a loess-fit model to smooth numeric variables spatially.
The variable names denoted in argument variables
are overwritten.
smoothSpatially(
coords_df,
variables,
smooth_span = 0.025,
normalize = TRUE,
verbose = TRUE
)
coords_df |
A data.frame containing information about every observation. Must contain the variables:
|
variables |
Character vector. Specifies the numeric variables of the input data.frame that are to be smoothed. |
smooth_span |
Numeric value. Controls the degree of smoothing.
Given to argument |
normalize |
Logical. If set to TRUE values will be scaled to 0-1. Hint: Variables that are uniformly expressed can not be scaled and are discarded. |
verbose |
Logical. If (Warning messages will always be printed.) |
The input data.frame containing the smoothed variables.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.