Skip to contents

Shapes

Functions for creating shape objects

ob_arc() ob_wedge() ob_circular_segment()
ob_arc class
ob_bezier()
The ob_bezier (i.e., bezier curve) class
ob_circle()
ob_circle class
ob_covariance()
create double-headed arrow paths indicating variance
ob_ellipse()
ob_ellipse class
ob_intercept()
ob_intercept
ob_label()
ob_label class
ob_latex()
ob_latex class
ob_line()
ob_line class
ob_ngon()
The ob_ngon (regular polygon) class
ob_path()
The ob_path class
ob_point() ob_polar()
ob_point
ob_polygon()
The ob_polygon class
ob_rectangle()
ob_rectangle class
ob_reuleaux()
Reuleaux polygon
ob_segment()
ob_segment class
ob_variance()
create double-headed arrow paths indicating variance

Alter shapes

Functions that alter shapes

nudge()
Move an object
place()
Place an object a specified distance from another object
resect()
resect
rotate()
Rotate an object in 2 dimensions

Get information about shapes

Functions that compute information about shapes

circle_from_3_points()
Get a circle from 3 points
connect()
Arrow connect one shape to another
distance()
Calculate distance between 2 points
get_tibble() get_tibble_defaults()
Get object data with styles in a tibble
intersection()
intersection of 2 objects (e.g., lines)
intersection_angle()
Compute the angle of the intersection of two objects
inside()
is an ob_point inside a shape ?
midpoint()
Get one or more points at positions from 0 to 1
`%|-%` `%-|%`
Find point perpendicular to 2 points
projection()
Find projection of a point on an object (e.g., line or segment)

Automation

Functions for working with many shapes

bind()
bind method
data2shape()
Make shapes from data
map_ob()
map_ob
ob_array()
make an array of shapes along a line
ob_shape_list()
ob_shape_list
ob_style()
ob_style class
redefault()
Make a variant of a function with alternate defaults
unbind()
unbind

Angles

Functions about angles

ob_angle() degree() radian() turn()
ob_angle
intersection_angle()
Compute the angle of the intersection of two objects

Color

Functions about colors

class_color()
color class
latex_color()
Surround TeX expression with a color command
mean_color()
Average across colors

Labels

Functions making and altering labels

equation()
equation
label_object()
Automatic label for objects
ob_label()
ob_label class
ob_latex()
ob_latex class
polar2just()
Convert hjust and vjust parameters from polar coordinates
round_probability()
Probability rounding
signs_centered()
Centering signed numbers
subscript() superscript()
Create subscripts

Arrowheads

Functions for getting and setting the default arrowhead

arrowhead() set_default_arrowhead()
Return default arrowhead

Plotting functions

Functions for plotting

ggdiagram()
ggdiagram function
as.geom()
as.geom function

Other functions

Helper functions

get_depth()
Function to calculate hierarchy depth in lavaan models