Skip to content

Instantly share code, notes, and snippets.

@baptiste
Last active June 17, 2020 08:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baptiste/d2fe1c0863353e4fcbb89642137f5343 to your computer and use it in GitHub Desktop.
Save baptiste/d2fe1c0863353e4fcbb89642137f5343 to your computer and use it in GitHub Desktop.
Progress-Pride-Flag-Daniel-Quasar_vector
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
library(minisvg)
flag <- minisvg::parse_svg_doc('Progress-Pride-Flag-Daniel-Quasar_vector.svg')
rlogo <- minisvg::parse_svg_doc('rlogo.svg')
kids <- rlogo$child
flag$append(kids$defs[[1]])
inset <- flag$g(transform="translate(520 220) scale(0.4) ")
inset$append(kids$path[[1]])
inset$append(kids$path[[2]])
flag$show()
flag$save("combined.svg")
library(rsvg)
r <- rsvg(charToRaw(flag$as_character()))
grid::grid.newpage()
grid::grid.raster(r)
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment