View source: R/spatialize-fcns.R
attach.geos | R Documentation |
attach.geos
attach.geos(
x,
geoid.col = "geoid",
query.fcn = tigris::tracts,
crs = 4326,
keep.census.cols = F,
...
)
x |
df with at least 1 column containing state+county geoid hierarchy (so that first 5 characters are state and county fips codes) |
geoid.col |
column representing geoids |
query.fcn |
function to query geos from census api. Default gets tracts |
keep.census.cols |
Whether to keep all columns from query, like aland, awater, etc. If false, just gets geometry. |
... |
passed onto the |
x
, as sf
object with geometries attached
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.