Heatmap based on postcode district

I'm very very new to R, but I want to use it to create a heatmap of the UK based on some data I have. I have a list of postcode districts (so more specific than just the postcode sector - SW15 as opposed to SW) with a count for each. Example below (figures made up)

CB11 - 25
DN3 - 12
LL12 - 6
NN10 - 45

etc.

I do not know if the data covers all of the postcodes in the UK, in case this may be an issue?

So how would I go about doing this?

You'll need the shape files for the areas. Check the licensing here:

Once you have these, then heatmaps can be produced using a mapping package like sf:

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.