Create a grob

ig_bezier(
  x = c(0, 0.5, 1, 0.5),
  y = c(0.5, 1, 0.5, 0),
  id = NULL,
  id.lengths = NULL,
  default.units = getOption("ingrid.default.units", "npc"),
  arrow = NULL,
  name = NULL,
  gp = NULL,
  vp = NULL,
  col,
  fill,
  alpha,
  lty,
  lwd,
  lex,
  lineend,
  linejoin,
  linemitre,
  fontsize,
  cex,
  fontfamily,
  fontface,
  lineheight,
  mask,
  clip,
  layout,
  layout.pos.row,
  layout.pos.col
)

Arguments

x, y

locations of spline control points

id

A numeric vector used to separate locations in x and y into multiple beziers. All locations with the same id belong to the same bezier.

id.lengths

A numeric vector used to separate locations in x and y into multiple bezier. Specifies consecutive blocks of locations which make up separate beziers.

default.units

getOption("ingrid.default.units", 'npc')

arrow

A list describing arrow heads to place at either end of the bezier, as produced by the arrow function.

name

grob name. default: NULL

gp

graphical parameter object created by grid::gpar() or ingrid::gp(). If NULL (default), then a gpar object is created from the relevant arguments to this function i.e. fill, col, etc

vp

viewport object created by grid::viewport(). If NULL (default), then a viewport object is created from a limited subset of arguments to this function i.e. mask, clip, etc

col, fill, alpha, lty, lwd, lex, lineend, linejoin, linemitre, fontsize, cex, fontfamily, fontface, lineheight

See documentation for gp()

mask, clip, layout, layout.pos.row, layout.pos.col

See documentation for grid::viewport()