adjust_curve: Interactive curve adjustment

View source: R/cspline.R

adjust_curveR Documentation

Interactive curve adjustment

Description

A simple interactive device for adjusting a curve. Given a set of points, the curve is plotted and may then be adjusted interactively by clicking on any of the points, one at a time, and clicking again at its intended new position.

Usage

adjust_curve(
  x,
  y = NULL,
  ...,
  plotit = TRUE,
  curve = open_curve,
  ccolour = "#DF536B",
  pcolour = "#2297E6"
)

Arguments

x, y

Any means of specifying points in the plane, as accepted by xy.coords()

...

additional arguments past on to curve()

plotit

logical: should the curve be plotted (TRUE) or can it be assumed the points are already on the display (FALSE)?

curve

One of the curve type functions of this package

ccolour

character string: colour for the curve in the plot

pcolour

character string: colour for the points in the plot

Value

The adjusted points which define the adjusted curve


frenchCurve documentation built on June 18, 2022, 9:05 a.m.