heatmapFromTrajectory: Creates a heatmap from a trajectory.

View source: R/heatmapFromTrajectory.R

heatmapFromTrajectoryR Documentation

Creates a heatmap from a trajectory.

Description

Generates a heatmap based on the density of points in a trajectory. It utilizes kernel density estimation to visualize the concentration of points, allowing for adjustments in color palette and plotting limits.

Usage

heatmapFromTrajectory(data, plim = NULL, plot.pal = TRUE, ...)

Arguments

data

An object of class 'trajectory' containing a collection of points with coordinates.

plim

Optional vector of length two specifying the plotting limits for the density values. If provided, values outside this range will be adjusted.

plot.pal

A logical value indicating whether to plot the color palette alongside the heatmap (default is TRUE).

...

Additional graphical parameters to customize the image.

Value

A matrix of density values corresponding to the heatmap.


BioTrajectory documentation built on Nov. 26, 2025, 5:07 p.m.