makeParametric: makeParametric

View source: R/M001_parametric.R

makeParametricR Documentation

makeParametric

Description

Functions to calculate the sequence of points given by functions x(t),y(t) for a vector of parameters t. runParametric calculates the points. makeParametric makes a component that calculates and plots the output. runTSpace creates a set of parameters if one isn't provided.

Usage

runParametric(
  xFun = function(x) {     sin(x * 2 * pi) },
  yFun = function(x) {     sin(x * 4 * pi) },
  parameterSpace
)

makeTSpace(tmin = 0, tmax = 1, lent = 101)

makeParametric(type = "lines", ...)

Arguments

xFun, yFun

functions or names of functions.

parameterSpace

the set of parameters used.

tmin, tmax, lent

used when parameterSpace isn't given. seq(tmin,tmax,lent) is then used as a parameterSpace.

...

parameters passed to the component and the component functions runParametric and runTSpace. See "details" for more information.

Examples

easyPlot(makeParametric())

R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.