Last active
June 17, 2020 08:43
-
-
Save baptiste/d2fe1c0863353e4fcbb89642137f5343 to your computer and use it in GitHub Desktop.
Progress-Pride-Flag-Daniel-Quasar_vector
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment