bez_smooth: bezier smooth

Description Usage Arguments

View source: R/gpx_edit.R

Description

replaces the track points between start and end points with a bezier curve.

Usage

1
bez_smooth(track, start_id, end_id, control, n_points = 10, reset_ids = FALSE)

Arguments

track

sf data.frame gpx track

start_id

integer start track_seg_point_id

end_id

integer end track_seg_point_id

control

numeric of length 2 or equivalent that can be coerced to matrix. must be in same projection as track.

n_points

integer number of points to create along the new curve.

reset_ids

logical if FALSE, track ids will not be reset and new points will not have ids.


dblodgett-cycling/gpxR documentation built on Feb. 26, 2021, 8:32 p.m.