Map of Kentucky

Share:

Description

Stamen toner map of Kentucky

Usage

1
data('kMap')

Format

A RayerLayer of Kentucky and surrounding areas.

Details

The Stamen toner map is a detailed black and white background map to use with colorful overlays.

Examples

 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
data(kMap)

data(kentuckyCounty)

countyBrks = classInt::classIntervals(kentuckyCounty$count, 
		n = 7, style = 'quantile'
)
countyCol = classInt::findColours(countyBrks, 
		pal = rev(RColorBrewer::brewer.pal(7, 'RdYlBu'))
)

mapmisc::map.new(kentuckyCounty)
plot(kentuckyCounty, 
		col = countyCol, 
		axes = FALSE, border = FALSE
)
plot(kMap, add = TRUE)

legend('topleft', 
		legend = rev(names(attr(countyCol, 'table'))), 
		fill = rev(attr(countyCol, 'palette')), 
		bg = 'white'
)

data(kentuckyTract)
kentuckyTract$expected[is.na(kentuckyTract$expected)] = 0

ctBrks = classInt::classIntervals(kentuckyTract$expected, 
	n = 7, style = 'fixed', fixedBreaks = c(0, 1, 1.5, 2, 3, 4, 6, 9.2)
)
ctCol = classInt::findColours(ctBrks, 
	pal = rev(RColorBrewer::brewer.pal(7, 'RdYlBu'))
)

mapmisc::map.new(kentuckyTract)
plot(kentuckyTract, 
	col = ctCol, 
	axes = FALSE, border = FALSE
)
plot(kMap, add = TRUE)

legend('topleft', 
		legend = rev(names(attr(ctCol, 'table'))), 
	fill = rev(attr(ctCol, 'palette')), 
	bg = 'white'
)