save_dot | R Documentation |
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,
...
)
dot |
a |
filename |
the full path of the file name (minus extension for multiple formats) |
size |
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. |
maxWidth |
a width (on the paper) in inches if |
maxHeight |
a height (on the paper) in inches if |
formats |
some of |
landscape |
rotate the output by 270 degrees into a landscape format.
|
... |
ignored |
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.
save_dot("digraph {A->B}",tempfile())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.