Learn R Programming

eechidna (version 1.1)

nat_map_2016: (Very small) Map of Australian Electorate from 2013

Description

A dataset containing the map of the all 150 Australian electorates using the 2013 boundaries of the electorates (and downsampled to a 0.5% file to allow fast plotting). The data were obtained from the Australian Electoral Commission, and downloaded from http://www.aec.gov.au/Electorates/gis/gis_datadownload.htm. Map of Australian Electorate from 2016

Usage

nat_map_2016

Arguments

Format

An object of class data.frame with 48897 rows and 9 columns.

Details

A dataset containing the map of the all 150 Australian electorates using the 2016 boundaries of the electorates (and downsampled to a 5% file to allow fast plotting). The data were obtained from the Australian Electoral Commission, and downloaded from http://www.aec.gov.au/Electorates/gis/gis_datadownload.htm.

Examples

Run this code

data(nat_map_2016)
data(nat_data_2016)
# choropleth map with area of electorate
library(ggplot2)
library(ggthemes)
ggplot(aes(map_id=id), data=nat_data_2016) +
  geom_map(aes(fill=Area_SqKm), map=nat_map_2016) +
  expand_limits(x=nat_map_2016$long, y=nat_map_2016$lat) + 
  theme_map()

Run the code above in your browser using DataLab