pd_node_dimensions: Node Dimensions

View source: R/S01-pd_functions.R

pd_node_dimensionsR Documentation

Node Dimensions

Description

Function to compute the dimensions of a node, providing values for the top, topright, right, bottomright, bottom, bottomleft, left, and topleft x and y-axis coordinates.

Usage

pd_node_dimensions(xy, wh)

Arguments

xy

A named vector with the x and y-axis coordinates for the center of the node.

wh

A named vector with the width and height of the node.

Value

A list with the assorted coordinates for the node.

Examples

pd_node_dimensions( c(x = .5, y = .5), wh = c( w = .1, h = .1 ) )


rettopnivek/pathdiagrams documentation built on Oct. 16, 2024, 2:52 p.m.