get_graph: Get PlantUML graph

View source: R/get_graph.R

get_graphR Documentation

Get PlantUML graph

Description

Get the graph from either the local PicoWeb Server included in plantuml or an online plantuml server.

Usage

get_graph(x, file = NULL, width = NULL, height = NULL, css = NULL)

Arguments

x

plantuml code to draw the UML graph

file

file name, including extension, to which the returned plantUML graph should be saved. If ⁠NULL', the graph is saved to a temporary file. The following extensions are allowed: - **svg**: This is the default format and the one **always** used as return format for PlantUML for image formats. No conversion neeed. - **txt**: Second return format for PlantUML. No conversion neeed. - **png**: Converted from **svg** using ⁠rsvg::rsvg_png( svg = tmpfile, file = file, width = width, height = height, css = css )⁠- **pdf** Converted from **svg** using⁠rsvg::rsvg_pdf( svg = tmpfile, file = file, width = width, height = height, css = css )⁠- **ps** Converted from **svg** using⁠rsvg::rsvg_ps( svg = tmpfile, file = file, width = width, height = height, css = css )'

width

output width in pixels or NULL for default.

height

output height in pixels or NULL for default

css

path/url to external css file or raw vector with css data. This requires your system has a recent version of librsvg.

Value

name of the file with the graph


rkrug/plantuml documentation built on June 3, 2023, 6:24 a.m.