Skip to content

Commit

Permalink
Added option for DiagrammeR footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgant committed Oct 19, 2017
1 parent 4379047 commit 45b012a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[2017-10-19] --

## Added

- Option to include footnotes when writing full graph code

[2017-04-03] --

## Added
Expand Down
4 changes: 2 additions & 2 deletions R/makeDAG.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

makeDAG <- function(graphcode = NULL, dagname = NULL, filetype = "pdf",
text.nodes = NULL, box.nodes = NULL,
solid.edges = NULL, dashed.edges = NULL,
solid.edges = NULL, dashed.edges = NULL, footnotes = NULL,
direction = "LR", embed = FALSE, ...) {

# make dag visible to function
Expand All @@ -88,7 +88,7 @@ makeDAG <- function(graphcode = NULL, dagname = NULL, filetype = "pdf",
} else {

dag_object <- DiagrammeR::grViz(
paste("digraph{ graph[rankdir = ", direction, "]", graphcode, "}")
paste("digraph{ graph[rankdir = ", direction, "]", graphcode, "}", footnotes)
)

}
Expand Down

0 comments on commit 45b012a

Please sign in to comment.