SmoothDwell: HeatMaker - Calculates smoothed dwell time at each...

Description Usage Arguments Value

View source: R/Heatmap.R

Description

HeatMaker - Calculates smoothed dwell time at each coodinates.

Usage

1
2
SmoothDwell(smooth.data, x.vec = NULL, y.vec = NULL, sigma = 9,
  n = 57, quant = 0.95, to.plot = FALSE)

Arguments

smooth.data

A data.frame contains x and y coordinates name of x coordinates vector should contain "x" or "X" column name of y coordinates vector should contain "y" or "Y"

x.vec

The grid of x-axis for the heatmap. Defaults to seq(min(x), max(x), 1)

y.vec

The grid of y-axis for the heatmap. Defaults to seq(min(y), max(y), 1)

sigma

The standard deviation of the Gaussian smoothing kernel, controls the level of the smoothing (larger, the heatmap will be smoother)

n

The filter size is n * n

quant

Quantile threshold, returns the > quant local maxima

to.plot

Flag, if TRUE will also plot the heatmap

Value

The function returns a list with following objects:

smooth.dwell.time

a data.frame, x, y, smooth.dwell.time. For each cell coordinates the smoothed dwell time spent

maxpoint

coordinates of local maxima above the predetermined threshold


tfrostig/RSEE documentation built on Feb. 5, 2020, 5:42 p.m.