View source: R/plot.plantuml.R
plot.plantuml | R Documentation |
Generate an image containing based ion the plantuml code. TODO can I use vector formats?
## S3 method for class 'plantuml'
plot(x, file = NULL, width = 1024, height = NULL, css = NULL, ...)
x |
plantuml code to draw the UML graph |
file |
|
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. |
... |
additional arguments for the |
returns file name (including absolute path) of the created graph.
plantumlCode <- '
@startuml
(*) --> "First Activity"
-->[You can put also labels] "Second Activity"
--> (*)
@enduml
'
## Not run:
x <- as.plantuml( plantumlCode )
plot( x )
plot(as.plantuml(x), java_opt = "-Djava.awt.headless=true")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.