Skip to content

Commit

Permalink
update DiagrammeR tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
erikaduan committed Jan 1, 2022
1 parent f6a577c commit bf99d50
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
4 changes: 2 additions & 2 deletions tutorials/dv-using_diagrammer/dv-using_diagrammer.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -409,9 +409,9 @@ knitr::include_graphics("../../figures/dv-using_diagrammer-flowchart_clinical_mu

## Entity relationship diagrams

[Entity relationship diagrams](https://en.wikipedia.org/wiki/Entity–relationship_model) (ERDs) are useful for visualising data warehouse data table relationships. In particular, the crow's foot notation is useful for tracking table joins, especially if one-to-many or many-to-many table relationships exist.
[Entity relationship diagrams](https://en.wikipedia.org/wiki/Entity–relationship_model) (ERDs) are useful for visualising data warehouse data table relationships. In particular, the crow's foot notation is useful for tracking table joins, especially if one-to-many or many-to-many table relationships exist. The following image of the crow's foot notation is sourced from [here](https://dev.to/helenanders26/entity-relationship-diagrams-explained-by-sonic-the-hedgehog-1m68).

```{r, echo=FALSE, results='hold', out.width='50%', fig.cap='Image sourced from https://dev.to/helenanders26/entity-relationship-diagrams-explained-by-sonic-the-hedgehog-1m68'}
```{r, echo=FALSE, results='hold', out.width='40%'}
knitr::include_graphics("../../figures/dv-using_diagrammer-crows_foot_notation.jpg")
```

Expand Down
14 changes: 4 additions & 10 deletions tutorials/dv-using_diagrammer/dv-using_diagrammer.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,17 +439,11 @@ diagrams](https://en.wikipedia.org/wiki/Entity–relationship_model)
(ERDs) are useful for visualising data warehouse data table
relationships. In particular, the crow’s foot notation is useful for
tracking table joins, especially if one-to-many or many-to-many table
relationships exist.
relationships exist. The following image of the crow’s foot notation is
sourced from
[here](https://dev.to/helenanders26/entity-relationship-diagrams-explained-by-sonic-the-hedgehog-1m68).

<div class="figure" style="text-align: center">

<img src="../../figures/dv-using_diagrammer-crows_foot_notation.jpg" alt="Image sourced from https://dev.to/helenanders26/entity-relationship-diagrams-explained-by-sonic-the-hedgehog-1m68" width="50%" />
<p class="caption">
Image sourced from
<https://dev.to/helenanders26/entity-relationship-diagrams-explained-by-sonic-the-hedgehog-1m68>
</p>

</div>
<img src="../../figures/dv-using_diagrammer-crows_foot_notation.jpg" width="40%" style="display: block; margin: auto;" />

A tip for creating ERDs using `DiagrammeR` is to set the edge direction
to both `(dir = 'both')` combined with `arrowhead` and `arrowtail`
Expand Down

0 comments on commit bf99d50

Please sign in to comment.