[R] svglite with multiple files
Heinz Tuechler
tuech|er @end|ng |rom gmx@@t
Wed Dec 9 12:33:11 CET 2020
Dear All,
while svg() (package grDevices) can produce several files, svglite()
(package svglite) is limited to one file/page only (as documented in the
respective help page).
Is there a simple solution to make svglite() work like svg() to produce
several files?
Of course one could call svglite() before dev.off() after every plot.
best regards,
Heinz
## example
svg("Rplot%03d.svg")
plot(1)
plot(2)
plot(3)
dev.off()
## three files Rplot001.svg, Rplot002.svg, Rplot003.svg are produced
library(svglite)
svglite("Rplot-lite.svg")
plot(1)
plot(2) ## as documented: Error in plot.new() : svglite only supports
one page
More information about the R-help
mailing list