p_get_as_dot {dtrackr}R Documentation

DOT output

Description

(advance usage) outputs a dtrackr history graph as a DOT string for rendering with Graphviz

Usage

p_get_as_dot(.data, fill = "lightgrey", fontsize = "8", colour = "black", ...)

Arguments

.data

the tracked dataframe

fill

the default node fill colour

fontsize

the default font size

colour

the default font colour

...

not used

Value

a representation of the history graph in Graphviz dot format.

Examples

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)

[Package dtrackr version 0.4.4 Index]