Description Usage Format Examples
A dataset containing the map of the all 150 Australian electorates using the 2013 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.
1 |
An object of class data.frame
with 27595 rows and 9 columns.
1 2 3 4 5 6 7 8 9 10 11 12 | data(nat_map)
# choropleth map with Census data
nat_map$region <- nat_map$ELECT_DIV
data(abs2011)
abs2011$region <- abs2011$Electorate
library(ggplot2)
library(ggthemes)
both <- intersect(unique(abs2011$region), unique(nat_map$region))
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.