· Entry 8 Giggly
35 to go
In A notebook for every page I mentioned that every example Giggly can't draw yet says so in the same words, "Not in Giggly yet", so the notebooks double as a to-do list. A to-do list is also a scoreboard, so let's check the score.
There are 644 examples across the 141 notebooks. Giggly 0.2 went out yesterday, and it draws 568 of them. Six weeks ago it drew 26.
Six weeks of drawing
All the notebooks were written in one go on October 15, with ggplot2's code for every example and Giggly's for the handful it could already draw. Everything since then is Giggly catching up:
The best day was November 4, with 54 examples. That's not one big feature, it's a lot of small ones landing at once, because examples tend to wait on several things at a time.
Then look at the middle of November. From November 8 to 20 the line barely moves: 27 examples in twelve days. I had a whole paragraph written about the long tail, the easy wins being gone and everything left needing something big or something weird. Then it shot back up, 68 examples in four days. So much for the long tail.
What actually happened is less dramatic. The first few of those days went into options for things Giggly already drew, like every one of coord_radial()'s and the facets', which finish a handful of examples at a time. Then Giggly's insides got rebuilt so that each geom and stat describes itself, and that turned into a plugin API, so a package like gig_ridges can bring geoms and stats of its own. And then Giggly made friends: kino_giggly, which draws plots in Livebook, and gig_datasets, a package of their own for the datasets. None of that draws an example in ggplot2's reference, so the count sat still while the village grew.
What's left
Of the 76 examples Giggly doesn't draw, 41 are set aside on purpose:
- 20 are about R itself rather than charts: saving a plot to a PDF, printing plots in a loop, putting the global theme back, building and printing a mapping or a
ggprotoobject. Giggly draws SVG only and has no global settings or objects like those, so these notebooks explain how Giggly does it and move on. - 12 use
qplot()orannotation_logticks(), which ggplot2 itself has deprecated or replaced. - Five need R's random numbers, up to 10,000 of them, copied into the notebook. In some cases where a notebook runs a random draw with a seed, we just run the same draw in R and paste the output into the code. For these, we decided discretion was the better part of valor.
- The last four are departures: two logistic regressions fitted with
glm(), which Giggly leaves to you by design, R's color names, and a custom guide that ggplot2 sizes so big it squeezes the panel.
That leaves 35 waiting.
Three use plotmath, R's little language for writing formulas in labels. Giggly's answer to that is gig_typst, which sets titles, labels and annotations in Typst, maths included. gig_typst is an optional plugin, so we punt on these.
The other 32 are maps. In R these lean on the maps and sf packages, which bring map data, geometries and coordinate reference systems. That's a whole geospatial stack, and a project of its own. But it's started: as of today gig_datasets has outlines of the US states, the world and New Zealand, laid out the way ggplot2's map_data() lays them, ready for its next release.