2016 EU Referendum Results

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

Originator: The Electoral Commission

Examples

Basic Examples

View the data:

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

Visualization

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

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

Analysis

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

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

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

Data Resource History

Source Metadata

Publisher Information