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 e9fd027
Showing 1 changed file with 2 additions and 2 deletions.
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 e9fd027

Please sign in to comment.