Skip to contents

Triangle polygons used in path diagrams.

Usage

ob_intercept(
  center = ob_point(0, 0),
  width = 1,
  label = character(0),
  top = class_missing,
  left = class_missing,
  right = class_missing,
  vertex_radius = numeric(0),
  alpha = numeric(0),
  color = character(0),
  fill = character(0),
  linewidth = numeric(0),
  linetype = numeric(0),
  x0 = numeric(0),
  y0 = numeric(0),
  style = class_missing,
  ...
)

Arguments

center

point at center

width

length of side

label

A character, angle, or label object

top

Top vertex of triangle

left

Left vertex of triangle

right

Right vertex of triangle

vertex_radius

A numeric or unit vector of length one, specifying the vertex radius

alpha

numeric value for alpha transparency

color

character string for color

fill

character string for fill color

linewidth

Width of lines

linetype

type of lines

x0

overrides x-coordinate in center@x

y0

overrides x-coordinate in center@y

style

Gets and sets the styles associated with polygons

...

<dynamic-dots> properties passed to style

Slots

length

The number of polygons in the ob_polygon object

tibble

Gets a tibble (data.frame) containing parameters and styles used by ggplot2::geom_polygon.