spline_path: spline_path

View source: R/spline_path.R

spline_pathR Documentation

spline_path

Description

A function that simplify a given path; remove points by splining the curve.

Usage

spline_path(x, y, n, t = seq_along(x), method = "natural")

Arguments

x

A vector that contains the x coordinates from the points that defines the path

y

A vector that contains the y coordinates from the points that defines the path

n

The number of points you want to keep after spline

t

The order of the points that defines the path; default is seq_along(x)

method

Method from spline function. It precise the type of spline to use. Possible values are 'fmm', 'natural', 'periodic', 'monoH.FC' and 'hyman'.

Value

A data frame of the new points that defines the path


mgerault/drawYpath documentation built on July 14, 2022, 10:28 a.m.