attach_key | R Documentation |
This function attaches a bivariate colour key to a bivariate colour map or a glyph key to a glyph map so that they can be viewed together.
attach_key(map, mapkey)
map |
An object generated with |
mapkey |
An object generated with |
data(us_data)
data(us_geo)
poverty <- read.uv(data = us_data, estimate = "pov_rate", error = "pov_moe")
# bivariate map and key together
map <- build_bmap(data = poverty, geoData = us_geo, id = "GEO_ID",
border = "state", terciles = TRUE)
key <- build_bkey(data = poverty, terciles = TRUE)
attach_key(map, key)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.