altair icon indicating copy to clipboard operation
altair copied to clipboard

Iris to penguins

Open baldwint opened this issue 5 years ago • 1 comments

Maybe someone is already working on this, but to help with #2213 I found it fun to rewrite three of the (currently broken) compound chart documentation sections using the new penguins dataset instead of iris.

I used the mapping

{
    "sepalLength": "Beak Length (mm)",
    "sepalWidth": "Beak Depth (mm)",
    "petalLength": "Flipper Length (mm)",
    "petalWidth": "Body Mass (g)",
    "species": "Species",
}

since this seemed more or less faithful to the patterns in iris. I also chose to un-anchor the scales from zero since the penguin means are not very close to zero.

visualization

While working on this, I found it useful to make a modified version of vega_datasets that retains some of the older datasets so that the docs can build without failing on examples that haven't been updated yet.

baldwint avatar Jul 09 '20 03:07 baldwint

Thanks! This will have to wait for a vega-datasets release that includes the penguins data.

jakevdp avatar Jul 09 '20 16:07 jakevdp

Pretty awesome to merge a 5 year old PR. Thanks for all the hard work here!

mattijn avatar Jul 12 '25 14:07 mattijn