Skip to contents

Q() and qq() draw quadratic Bézier curves T() and tt() draw quadratic Bézier curves assuming the control point is the reflection of the previous Bézier curve command.

Usage

Q(
  x1,
  y1 = 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)
)

qq(
  x1,
  y1 = 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)
)

QZ(...)

qz(...)

T(
  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)
)

tt(
  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)
)

TZ(...)

tz(...)

Arguments

x1

If y1 is NULL will be coerced by affiner::as_coord2d(). Else a numeric vector.

y1

Either NULL or a numeric vector.

x

If y is NULL will be coerced by affiner::as_coord2d(). Else a numeric vector.

y

Either NULL or a numeric vector.

...

Passed to related function.

sep

Either "," or " ".

origin_at_bottom, height

If origin_at_bottom is TRUE then y (and any y1 and y2) coordinates is transformed by height - y for absolute coordinates and -y for relative coordinates.

digits

x and y (and any x1, y1, x2, y2) will be transformed by round(, digits). An Inf (default) means no rounding.

Value

A dee() object.

Examples

M(1, 1) + Q(2, 2, 3, 3) + T(4, 4) + Z()
#> <dee[1]>
#> M 1,1 Q 2,2 3,3 T 4,4 Z
M(1, 1) + qq(1, 1, 2, 2) + tt(1, 1) + zz()
#> <dee[1]>
#> M 1,1 q 1,1 2,2 t 1,1 z