make_erd function

Create Entity Relationship Diagram

Create Entity Relationship Diagram

Create an Entity-Relationship Diagram (ERD) from a data model and save it to disk in SVG format. Requires that the dm, DiagrammeR, V8, and DiagrammeRsvg packages are available.

make_erd(dm, path = tempfile(fileext = ".svg"), overwrite = FALSE)

Arguments

  • dm: 'dm ' object. Data model.
  • path: 'character' string. File path to write the ERD.
  • overwrite: 'logical' flag. Whether to overwrite an existing file.

Returns

Invisibly returns the file path.

See Also

make_dm function for creating a data model for the inldata package.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center