ggdiagram0.1.1 package

Object-Oriented Diagram Plots with 'ggplot2'

ggdiagram-package

ggdiagram: Object-Oriented Diagram Plots with 'ggplot2'

ggdiagram

ggdiagram function

inside

is an ob_point inside a shape ?

intersection_angle

Compute the angle of the intersection of two objects

intersection

intersection of 2 objects (e.g., lines)

label_object

Automatic label for objects

latex_color

Surround TeX expression with a color command

map_ob

map_ob

mean_color

Average across colors

midpoint

Get one or more points at positions from 0 to 1

nudge

Move an object

ob_angle

ob_angle

ob_arc

ob_arc class

ob_array

make an array of shapes along a line

ob_bezier

The ob_bezier (i.e., bezier curve) class

ob_circle

ob_circle class

as.geom

as.geom function

bind

bind method

circle_from_3_points

Get a circle from 3 points

class_aesthetics_list

class_aesthetics_list

class_color

color class

connect

Arrow connect one shape to another

data2shape

Make shapes from data

distance

Calculate distance between 2 points

equation

equation

place

Place an object a specified distance from another object

get_depth

Function to calculate hierarchy depth in lavaan models

get_tibble

Get object data with styles in a tibble

subscript

Create subscripts

unbind

unbind

polar2just

Convert hjust and vjust parameters from polar coordinates

projection

Find projection of a point on an object (e.g., line or segment)

redefault

Make a variant of a function with alternate defaults

reexports

Objects exported from other packages

resect

resect

rotate

Rotate an object in 2 dimensions

round_probability

Probability rounding

signs_centered

Centering signed numbers

arrowhead

Return default arrowhead

ob_covariance

create double-headed arrow paths indicating variance

ob_ellipse

ob_ellipse class

ob_intercept

ob_intercept

ob_label

ob_label class

ob_variance

create double-headed arrow paths indicating variance

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_point

ob_polygon

The ob_polygon class

ob_rectangle

ob_rectangle class

ob_reuleaux

Reuleaux polygon

ob_segment

ob_segment class

ob_shape_list

ob_shape_list

ob_style

ob_style class

perpendicular_point

Find point perpendicular to 2 points

pipe

Pipe operator

Creates diagrams with an object-oriented approach. Geometric objects have computed properties with information about themselves (e.g., their area) or about their relationships with other objects (e.g, the distance between their edges). The objects have methods to convert them to geoms that can be plotted in 'ggplot2'.

  • Maintainer: W. Joel Schneider
  • License: CC0
  • Last published: 2025-09-14