createGraph: Create a Graph

View source: R/diagram_func.R

createGraphR Documentation

Create a Graph

Description

'createGraph()' is a function used to transform create subgraph based on DiagrammeR syntax and template. It is used to create one subgraph per group of records according to the Darwin Core scheme (i.e. Event Core, Occurrence and eMoF extensions). It models homogeneous relations (several levels in the same group of records). It returns a character string to insert into a template readable by grViz() function.

Usage

createGraph(dfRelations, dfNodeLabel)

Arguments

dfRelations

a dataframe containing heterogeneous relations (between two different groups of records, that contains at least one column "parent" and one column "children").

dfNodeLabel

a dataframe that contains the labels of instances (which will be used for visual representation) and a code

Value

a character string containing the heterogeneous relations in the form parent -> children, to insert into a template for grViz() function.

See Also

Other DiagrammeR function: createSubgraph()


fja062/WLDM.standardisation documentation built on Jan. 3, 2023, 11:23 a.m.