C() and cc() draw cubic Bézier curves
S() and ss() draw cubic Bézier curves assuming the first control point is the reflection of the previous Bézier curve command.
Usage
C(
x1,
y1 = NULL,
x2,
y2 = NULL,
x,
y = NULL,
...,
sep = getOption("dee.sep", ","),
origin_at_bottom = getOption("dee.origin_at_bottom", FALSE),
height = getOption("dee.height", NULL),
digits = getOption("dee.digits", Inf)
)
cc(
x1,
y1 = NULL,
x2,
y2 = NULL,
x,
y = NULL,
...,
sep = getOption("dee.sep", ","),
origin_at_bottom = getOption("dee.origin_at_bottom", FALSE),
height = getOption("dee.height", NULL),
digits = getOption("dee.digits", Inf)
)
CZ(...)
cz(...)
S(
x2,
y2 = NULL,
x,
y = NULL,
...,
sep = getOption("dee.sep", ","),
origin_at_bottom = getOption("dee.origin_at_bottom", FALSE),
height = getOption("dee.height", NULL),
digits = getOption("dee.digits", Inf)
)
ss(
x2,
y2 = NULL,
x,
y = NULL,
...,
sep = getOption("dee.sep", ","),
origin_at_bottom = getOption("dee.origin_at_bottom", FALSE),
height = getOption("dee.height", NULL),
digits = getOption("dee.digits", Inf)
)
SZ(...)
sz(...)Arguments
- x1
If
y1isNULLwill be coerced byaffiner::as_coord2d(). Else a numeric vector.- y1
Either
NULLor a numeric vector.- x2
If
y2isNULLwill be coerced byaffiner::as_coord2d(). Else a numeric vector.- y2
Either
NULLor a numeric vector.- x
If
yisNULLwill be coerced byaffiner::as_coord2d(). Else a numeric vector.- y
Either
NULLor a numeric vector.- ...
Passed to related function.
- sep
Either
","or" ".- origin_at_bottom, height
If
origin_at_bottomisTRUEtheny(and anyy1andy2) coordinates is transformed byheight - yfor absolute coordinates and-yfor relative coordinates.- digits
xandy(and anyx1,y1,x2,y2) will be transformed byround(, digits). AnInf(default) means no rounding.
Value
A dee() object.