I want to generate a stat_bin2d() plot but for pre-binned data;
i.e. Rather than raw points
x y 5 3 13 4 13 14 16 12 15 13
I instead have the data pre-binned with the corner points, in this case.
x y freq 0 0 1 0 10 0 10 0 1 10 10 3
I believe it might have something to do with the data param of stat_bin2d but i can’t find any doco on this.
You can use
geom_bin2d()(with an “identity” stat), or just directly draw rectangles.