path_fn {cursr}R Documentation

Function Path

Description

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

Usage

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

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


[Package cursr version 0.1.0 Index]