p_get_as_dot | R Documentation |
(advance usage) outputs a dtrackr
history graph as a DOT string for rendering with Graphviz
p_get_as_dot(.data, fill = "lightgrey", fontsize = "8", colour = "black", ...)
.data |
the tracked dataframe |
fill |
the default node fill colour |
fontsize |
the default font size |
colour |
the default font colour |
... |
not used |
a representation of the history graph in Graphviz
dot format.
library(dplyr)
library(dtrackr)
tmp = iris %>% track() %>% comment(.tag = "step1") %>% filter(Species!="versicolor")
dot = tmp %>% group_by(Species) %>% comment(.tag="step2") %>% p_get_as_dot()
cat(dot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.