In R I am looking to create a heatmap similar to the one below. Where size represents energy expelled and color represents depth.
My dataset (CSV) looks something like this:
X, Y, Z, E
19305, -11211, -599, 3000
22159, -13553, -600, 300
22155, -13519, -823, 2000
... ... ... ...
Where X, Y & Z are axes and E is energy.
I have spent the past couple hours playing with R but unable to accomplish what I have set out to. Please provide sample code if possible.
Thanks!
Edit: Updated to use more meaningful data. The original response is at the bottom.
This map...
... can be produced with the following code:
Original Response:
It would be better if you provided more representative sample data, but calling your dataset
gg
,I used a log (Energy) scale because the levels are so different.