Learn R Programming

ggenealogy (version 1.0.3)

buildMinusPathDF: Process the genealogy graph

Description

This function takes the spreadTotalDF object (from the buildSpreadTotalDF function) and the path object as inputs. From these objects, it creates a data frame object of the label, x, and y values of all nodes in the ful genealogy. However, the data frame object does not include the labels of the path varieties, as they will be treated differently.

Usage

buildMinusPathDF(path, geneal, ig, colName, colNameY, bin = 12)

Arguments

path

path as returned from getPath() or a vector of two variety names which exist in the ig object

geneal

the full genealogy (in data frame format)

ig

the graph representation of the data genealogy (in igraph format)

colName

the name of the column of the data frame that contains the quantitative variable of interest (in character string format)

colNameY

the name of the second optional column of the data frame that contains the second optional quantitative variable of interest (in character string format). This optional quantitative variable will be plotted on the vertical axis.

bin

the number of bins to determine the vertical positions of nodes (default is 12). For more information on choosing bin size, please visit the ggenealogy vignette.

See Also

https://www.r-project.org for iGraph information

getPath for information on input path building