bergant / datamodelr

Data model diagrams in R
Other
285 stars 28 forks source link

Add title? #10

Open DataStrategist opened 5 years ago

DataStrategist commented 5 years ago

just like https://github.com/rich-iannone/DiagrammeR/issues/182

I think that this:

library(DiagrammeR)

graph <- 
  create_graph() %>%
  add_n_nodes(2) %>%
  add_edge(1, 2)

graph %>% render_graph(title = "The Graph Title")

adds a title to the graph. Would it be possible to extend that functionality to dm_render_graph? Especially because it seems that dm_render_graph has a property called graph_name... but that's only used for a mouseover effect, it would make sense to export that to title, no?