sF_download | R Documentation |
Download SpatialPolygonsDataFrame containing polygons of Australian federal electorates
sF_download(year, ...)
year |
Desired year, must be one of 2001, 2004, 2007, 2010, 2011, 2013, 2016, 2019 |
... |
Additional arguments passed to 'download.file' Downloads and returns a large SpatialPolygonsDataFrame containing the polygons and associated data for each of the Australian electorates in the desired federal election. This object is obtained using the 'sF_download' function. The data were obtained from the Australian Electoral Commission and the Australian Bureau of Statistics. |
A SpatialPolygonsDataFrame containing polygons of the Australian federal electorates
## Not run:
sF_16 <- sF_download(year = 2016)
# Plot a map of the electorates
library(sp)
plot(sF_16)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.