Skip to contents

Saves dot graph as file using system command 'dot' from GraphViz (https://graphviz.org/) if installed.

Usage

save_dot_graph_as(
  dot_graph,
  save_to_file = NULL,
  save_as = c("png", "svg", "pdf"),
  width = NULL,
  height = NULL
)

Arguments

dot_graph

Dot graph as a character string

save_to_file

Name of file to save to. Without path or relative path saves to the R's current working directory. If NULL returns file content as string.

save_as

File format. Default is "png"

width

width of the procedures graph in pixels

height

height of the procedures graph in pixels

Value

Ethier raw file as character string if save_to_file is NULL or a file name, i.e. the value of save_to_file is it is not NULL