Convert a digraph in dot format to SVG and save it to a range of output file types
save_dot(
dot,
filename,
size = std_size$half,
maxWidth = size$width,
maxHeight = size$height,
formats = c("dot", "png", "pdf", "svg"),
landscape = size$rot != 0,
...
)
a list with items paths
with the absolute paths of the saved files
as a named list, and svg
as the SVG string of the rendered dot file.
a graphviz
dot string
the full path of the file name (minus extension for multiple formats)
a named list with 3 elements, length and width in inches and rotation. A predefined set of standard sizes are available in the std_size object.
a width (on the paper) in inches if size
is not defined
a height (on the paper) in inches if size
is not defined
some of pdf
,dot
,svg
,png
,ps
rotate the output by 270 degrees into a landscape format.
maxWidth
and maxHeight
still apply and refer to the paper width to fit
the flowchart into after rotation. (you might need to flip width and height)
ignored
save_dot("digraph {A->B}",tempfile())
Run the code above in your browser using DataLab