path_fn: Function Path

Description Usage Arguments Value See Also Examples

View source: R/7-Path.R

Description

Calculate the path within a grid of an user-supplied function.

Usage

1
path_fn(x1, x2, fn, n = 50)

Arguments

x1

starting column value of the path

x2

ending column value of the path

fn

function returning row value for a column input

n

number of points along curve to calculate

Value

Nx2 matrix of (row, column) coordinates

See Also

Other path-fitting functions: path_arc(), path_bezier(), path_circle(), path_ellipse(), path_fill(), path_intersection(), path_lerp(), path_ray(), path_rect(), path_shape()

Examples

1
2
3
path_fn(x1=1, x2=10,
  function(x){sqrt(x)}
)

cursr documentation built on Jan. 13, 2021, 7:35 a.m.