Results

fp01 fp04 fp07 fp10 fp13 fp16 fp19 fp22

First preference votes for candidates (House of Representatives) in each electorate.

tcp01 tcp04 tcp07 tcp10 tcp13 tcp16 tcp19 tcp22

Two candidate preferred votes for candidates (House of Representatives) in each electorate.

tpp01 tpp04 tpp10 tpp07 tpp13 tpp16 tpp19 tpp22

Two party preferred votes for candidates in each electorate where Labor and Liberal parties were the two most popular parties.

firstpref_pollingbooth_download()

Download first preference voting data from each polling booth, from the six Australian Federal elections between 2001 and 2016.

twocand_pollingbooth_download()

Download two candidate preference voting data from each polling booth, from the five Australian Federal elections between 2004 and 2016.

twoparty_pollingbooth_download()

Download two party preference voting data from each polling booth, from the seven Australian Federal elections between 2001 and 2016.

Census Data

abs2001 abs2004 abs2006 abs2007 abs2010 abs2011 abs2013 abs2016 abs2019

Australian Census data on all electorates

weighted_avg_census()

Function to compute weighted average of Census information using imputed populations as weights.

weighted_avg_census_sa1()

Function to compute weighted average of Census information using imputed populations as weights

Spatial Data

nat_data_download()

Download a data frame containing electorate centroids

nat_map_download()

Download a data frame containing the polygons of Australian federal electorates

sF_download()

Download SpatialPolygonsDataFrame containing polygons of Australian federal electorates

load_shapefile()

Load shapefile of Australia into R

get_electorate_shapes()

Extract shapefiles (of Australian electorates) from raw file into fortified map and data components.

Cartograms and Helpers

aec_add_carto_f()

aec_add_carto_f - computes and binds the cartogram coordinates to original data

aec_carto_f()

aec_carto_f - run dorling on data centers

aec_carto_join_f()

aec_carto_join_f - bind the cartogram coordinates to original data

aec_extract_f()

aec_extract_f - extract subsets geographically

allocate_electorate()

Determine which electoral division contains the centroid from each of the Census polygons.

extract_centroids()

Extract centroids from the polygons within a shapefile.

mapping_fn()

Compute areas of intersection between each election boundary and those in the Census of interest. This is a less refined method than using SA1 centroids.

circle()

Draw a circle

complete_color()

Auto complete (or cut) a vector to a fixed length

dorling()

Produce a Pseudo-Dorling Cartogram.

launch_app()

Shiny app for exploring census and electorate data