Renders and saves a hex sticker to SVG. Requires the svglite package.
Arguments
- sticker
A ggplot object returned by
hex_sticker().- filename
Character. Output file path. Must end in
.svg.- width
Numeric. Width in inches. Default
2.
See also
Other stickers:
hex_sticker(),
hexmakr_app(),
save_hex()
Examples
# \donttest{
if (requireNamespace("svglite", quietly = TRUE)) {
s <- hex_sticker("mypackage")
tmp <- tempfile(fileext = ".svg")
save_hex_svg(s, tmp)
}
# }