path_vector: Record a path through all nodes of an adjacency matrix

View source: R/MullerPlot.R

path_vectorR Documentation

Record a path through all nodes of an adjacency matrix

Description

Nodes are traversed in the order that they should be stacked in a Muller plot. Each node appears exactly twice.

Usage

path_vector(edges)

Arguments

edges

Dataframe comprising an adjacency matrix, with column names "Parent" and "Identity"

Value

A vector specifying the path.

Author(s)

Rob Noble, robjohnnoble@gmail.com

Examples

edges1 <- data.frame(Parent = c(1,1,1,3,3), Identity = 2:6)
path_vector(edges1)


ggmuller documentation built on Feb. 16, 2023, 7:42 p.m.