Toying with a new/different SVG parser based on 'nanosvg'

#RStats

Reconsidering shape of the returned data to make use with #ggplot easier.

#RStats

#ggplot raw svg data

Stroke is coloured by the shape index within the SVG.

#RStats

Convert from beziers to line segments in pure #RStats.

Here's the tiger, once with false colour, once with real colours. Plotted with #ggplot geom_polygon()

Feeling pretty good for a bit of lazy #WeekendCoding

Still some polygon vs polyline things to work out. And subpaths / fillrules.

You can see some artefacts under the eye on the right where polygons are drawn, but they should be polylines.

#RStats

Probable lines (rather than polygons)

#RStats

Now that I have coordinates for all the elements, I can do stupid things like a log10() on the y-axis

#RStats #SVG #WIP