View source: R/S02-legacy_functions.R
size | R Documentation |
Determine the size (width and height) of a node in an existing path diagram.
size(node)
node |
A list with x and y
coordinates for the bottom, left,
top, right, and associated corners
for a node (e.g., see output of
|
# Base figure
create_base_figure()
# Add nodes
nodes <- add_nodes(
c( N1 = 'Node-1|x=.25|y=.5',
N2 = 'Node-2\n Indent|x=.75|y=.5'
),
output = TRUE
)
# Dimension of nodes in diagram
size( nodes$N1 )
size( nodes$N2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.