transform_path: Renders a 2D path with different methods

View source: R/system_sequence.R

transform_pathR Documentation

Renders a 2D path with different methods

Description

Renders a 2D path with different methods

Usage

transform_path(data, scale = 1, width = c(0, 10), method = "polygon")

Arguments

data

a dataframe with x and y coordinates

scale

scaling factor of the output

width

a numeric vector for x and y shifts of the path

method

method used to render the path.

  • "spline" fits a b-spline to smooth the initial path.

  • "path" shift the initial path according to width argument.

  • "polygon" builds an oriented polygon from the shifted path.

  • "polygon_lm" builds an oriented polygon with decreasing size along path length.

Value

a dataframe with new x and y coordinates


picasa/generate documentation built on Feb. 28, 2025, 6:51 a.m.