JuliaPlots / StatsPlots.jl

Statistical plotting recipes for Plots.jl
Other
437 stars 88 forks source link

Heatmap for "long" DataFrames #284

Open metanoid opened 4 years ago

metanoid commented 4 years ago

The available heatmap plot from Plots.jl is built with a particular "shape" of data in mind: the user will define:

But this isn't the shape of the data in the most common scenarios in which I want a heatmap. The shape I usually find myself in is having a DataFrame with

In other words, the DataFrame is "long" rather than "wide".

What I think would be nice is some "recipe" in which the user can provide:

Right now, my workaround is to use unstack on the DataFrame before plotting, but this is a bit ungainly.

mkborregaard commented 4 years ago

That makes sense, should be pretty easy to implement

daschw commented 4 years ago

That could/should be done for contour, surface and wireframe as well.

poglesbyg commented 3 years ago

Any update on this issue?