--- title: "Parsing existing SVGs for use in Excalidraw" author: "Baptiste AuguiƩ" date: '`r Sys.Date()`' vignette: > %\VignetteEngine{knitr::rmarkdown} %\VignetteIndexEntry{Parsing existing SVGs for use in Excalidraw} %\VignetteEncoding{UTF-8} output: rmarkdown::html_vignette: toc: true toc_depth: 3 self_contained: false resource_files: - fun.svg --- ```{r setup, echo=FALSE, message=FALSE,warning=FALSE,out.width='100%'} library(minixcali) library(purrr) library(knitr) opts_chunk$set(message = FALSE, warning=FALSE, fig.width = 7, fig.height = 3, out.width='100%') ``` As an experiment we'll try to import the following svg output from [`ln`, a cool go program to create 3D line drawings for pen plotters](https://github.com/fogleman/ln). ```{r input, out.width="100%", fig.align='center', echo=FALSE} knitr::include_graphics('fun.svg') ``` The SVG file contains many polylines such as ```