Edit SVG files created in 'Inkscape' by replacing placeholders (e.g. a rectangle element or {} in a text box) by 'ggplot2' objects, images or text. This helps automate the creation of figures with complex layouts.
svgedit allows creating figures with complex layout programmatically in R, by using an SVG file as a template.
You can install svgedit from CRAN with:
install.packages("svgedit")
There are four main steps to use svgedit:
{} placeholder for dynamic text (a single text box can contain multiple {} placeholders)See the package vignette by running vignette("multi-panel-figure", package = "svgedit") for an example use.