spline_path | R Documentation |
A function that simplify a given path; remove points by splining the curve.
spline_path(x, y, n, t = seq_along(x), method = "natural")
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 |
method |
Method from spline function. It precise the type of spline to use. Possible values are 'fmm', 'natural', 'periodic', 'monoH.FC' and 'hyman'. |
A data frame of the new points that defines the path
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.