library(ruml) library(plantuml) # install from: https://github.com/rkrug/plantuml library(magrittr)
library(polmineR)
plantuml_code <- make_plantuml_code("count", pkg = polmineR) plantuml_obj <- plantuml(plantuml_code) plot(plantuml_obj, vector = TRUE)
[not evaluated]
plantuml_svg_file <- tempfile(fileext = ".svg") svg(filename = plantuml_svg_file) plot(plantuml_obj, vector = TRUE) dev.off() browseURL(url = plantuml_svg_file)
svglite::xmlSVG(plot(plantuml_obj, vector = TRUE)) %>% svgPanZoom::svgPanZoom(width = "100%", height = "100%")
xml_file <- system.file(package = "ruml", "extdata", "xml", "shiporder.xml") make_plantuml_code(xml_file) %>% paste(collapse = "\n") %>% plantuml() %>% plot(vector = TRUE)
xsd_file <- system.file(package = "ruml", "extdata", "xml", "shiporder.xsd") make_plantuml_code(xsd_file) %>% paste(collapse = "\n") %>% plantuml() %>% plot(vector = TRUE)
xsd_file <- system.file(package = "ruml", "extdata", "xml", "plenaryprotocol.xsd") make_plantuml_code(xsd_file) %>% paste(collapse = "\n") %>% plantuml() %>% plot(vector = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.