Learn R Programming

dtrackr (version 0.4.6)

p_get_as_dot: 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", ...)

Value

a representation of the history graph in Graphviz dot format.

Arguments

.data

the tracked dataframe

fill

the default node fill colour

fontsize

the default font size

colour

the default font colour

...

not used

Examples

Run this code
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)

Run the code above in your browser using DataLab