plotNodes: Detection Node Schematic

View source: R/plotNodes.R

plotNodesR Documentation

Detection Node Schematic

Description

Create a schematic plot showing the connections between each detection node in a parent-child table.

Usage

plotNodes(
  parent_child = NULL,
  layout = "auto",
  point_size = 5,
  label_points = T,
  label_size = 2,
  ...
)

Arguments

parent_child

The output of 'buildParentChild()'.

layout

The type of layout to create. Either a valid string, a function, a matrix, or a data.frame (see Details)

point_size

size for points on graph (passed to 'size' argument of 'geom_node_point()').

label_points

'TRUE/FALSE' should the nodes be labeled with their names? Default is 'TRUE'.

label_size

size for node labels on graph (passed to 'size' argument of 'geom_node_label()').

...

other arguments for 'geom_edge_diagonal', 'geom_node_point()' or 'geom_node_label()'.

Value

a ggplot object

Author(s)

Kevin See


KevinSee/PITcleanr documentation built on Feb. 27, 2024, 11:03 p.m.