createGraph | R Documentation |
'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.
createGraph(dfRelations, dfNodeLabel)
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 |
a character string containing the heterogeneous relations in the form parent -> children, to insert into a template for grViz() function.
Other DiagrammeR function:
createSubgraph()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.