nat_data: Data of the Australian Electorate from 2013

Description Usage Format Examples

Description

A dataset containing some demographic information for each of the 150 Australian electorates. The data were obtained from the Australian Electoral Commission, and downloaded from http://www.aec.gov.au/Electorates/gis/gis_datadownload.htm. The data is published

Usage

1

Format

A data frame with 150 rows with the following variables:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(nat_data)
nat_map$region <- nat_map$ELECT_DIV
data(abs2011)
abs2011$region <- abs2011$Electorate
both <- intersect(unique(abs2011$region), unique(nat_map$region))
data(nat_data)
library(ggplot2)
library(ggthemes)
ggplot(aes(map_id=region), data=subset(abs2011, region %in% both)) +
  geom_map(aes(fill=MedianIncome), map=subset(nat_map, region %in% both)) +
  expand_limits(x=nat_map$long, y=nat_map$lat) + 
  theme_map()
  

eechidna documentation built on May 30, 2017, 6:46 a.m.

Search within the eechidna package
Search all R packages, documentation and source code