2016 EU Referendum Results

Voting data for the 2016 "Brexit" referendum on UK membership in the EU

Examples

Basic Examples

Retrieve the ResourceObject:

In[1]:=
ResourceObject["2016 EU Referendum Results"]
Out[1]=

View the data:

In[2]:=
ResourceData["2016 EU Referendum Results"]
Out[2]=

Visualization

Show the fraction of voters in the West Midlands who voted to remain in the EU:

In[3]:=
GeoRegionValuePlot[
 Rule @@@ ResourceData["2016 EU Referendum Results"][
    Select[#Region == "West Midlands" &]][
   All, {"Polygon", "PercentRemain"}]]
Out[3]=

Analysis

Calculate the overall fraction of votes to remain in the EU for each region:

In[4]:=
Sort[(#[[1]]/#[[2]]) & /@ (Total /@ 
    GroupBy[ResourceData["2016 EU Referendum Results"], "Region"][All,
      All, {"VoteRemain", "ValidVotes"}]), Greater]
Out[4]=

Wolfram Research, "2016 EU Referendum Results" from the Wolfram Data Repository. (2016) https://doi.org/10.24097/wolfram.26288.data

Source Metadata