Skip to contents

Plot per-cluster histograms of observation times with cluster start/stop markers, stacked vertically.

Usage

# S3 method for class 'ctdf'
hist(x, binwidth = 3600, ...)

Arguments

x

A ctdf object.

binwidth

Bin width in seconds (POSIXct is binned in seconds). Defaults to 1 hour.

...

Ignored.

Value

A ggplot.

Examples

require(clusterTrack.Vis)
data(pesa56511)
ctdf = as_ctdf(pesa56511, time = "locationDate") |> cluster_track()
#> → Find putative cluster regions.
#> ! Repairing[1]...
#> → Local clustering.
#> ! Repairing[2]...
#> ! Compute lof scores...
hist(ctdf)