dm_create_graph: Create a graph object from data model object

Description Usage Arguments

View source: R/graph.R

Description

Create a graph object from data model object

Usage

1
2
3
dm_create_graph(dm, rankdir = "BT", graph_name = "Data Model",
  graph_attrs = "", node_attrs = "", edge_attrs = "", view_type = "all",
  focus = NULL, col_attr = "column", columnArrows = FALSE)

Arguments

dm

A data model object

rankdir

Graph attribute for direction (eg. 'BT' = bottom –> top)

graph_name

A graph name

graph_attrs

Additional graph attributes

node_attrs

Additional node attributes

edge_attrs

Additional edge attributes

view_type

Can be "all" (by default), "keys_only" or "title_only". It defines the level of details for the table rendering (all columns, only primary and foreign keys or no columns)

focus

A list of parameters for rendering (table filter)

col_attr

Column atributes to display. Only column name (column) is included by default.

columnArrows

Edges from column to column (default: FALSE)


bergant/datamodelr documentation built on March 6, 2021, 5:47 a.m.