Description Usage Format Examples
Lung cancer case counts, population, and map of Kentucky.
1 2 3 4 |
SpatialPolygonsDataFrame of Kentucky census boundaries with cancer cases and population data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # plot case data
data('kentuckyCounty')
data('kMap')
countyCol = mapmisc::colourScale(kentuckyCounty$count,
breaks = 7, style = 'quantile', dec = -1)
mapmisc::map.new(kentuckyCounty)
plot(kentuckyCounty,
col = countyCol$plot,
add = TRUE)
plot(kMap, add = TRUE)
mapmisc::legendBreaks('topleft', countyCol)
# plot population data
data('kentuckyTract')
kCol = mapmisc::colourScale(kentuckyTract$expected,
breaks = 9, style = 'equal', dec = 0)
mapmisc::map.new(kentuckyTract)
plot(kentuckyTract,
col = kCol$plot, border = '#00000010',
add = TRUE)
plot(kMap, add = TRUE)
mapmisc::legendBreaks('topleft', kCol)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.