geom_navr_path_segments: Plots paths during certain timewindows

View source: R/navr-plot-elements.R

geom_navr_path_segmentsR Documentation

Plots paths during certain timewindows

Description

calls geom_navr_path under the hood. So any optional parameters, such as add_points, can be also added here

Usage

geom_navr_path_segments(obj, times, size = 2, color = "blue", ...)

Arguments

obj

navr object

times

matrix with two dimensions. Each column of the matrix marks the begining and an end of the segment First row is the beginings and second is the ends. Path between the beginning and end is then colored. Times need to be on the same scale as the timestamps in obj$data$timestamp

size

size of the path. Default is 2

color

color of the geom_path. Default is "blue

...

another optional parameters for the geom_path or geom_navr_path. See Description

Value

list of ggplot geom_paths


hejtmy/navr documentation built on March 3, 2023, 5:24 p.m.