# \donttest{
library(MazamaSpatialPlots)
mazama_initialize()
countyMap(
data = example_US_countyCovid,
parameter = "cases",
breaks = c(0,100,200,500,1000,2000,5000,10000,20000,50000,1e6),
title = "COVID-19 Cases on June 01 2020"
)
countyMap(
data = example_US_countyCovid,
parameter = "deaths",
state_SFDF = USCensusStates_02,
county_SFDF = USCensusCounties_02,
breaks = c(0, 1, 50, 100, 250, 500, 1000, 2500, 3000),
palette = "brewer.or_rd",
stateCode = c( "NY", "PA", "MD", "NJ", "DE"),
stateBorderColor = "black",
countyBorderColor = 'grey70'
) +
tmap::tm_layout(
attr.color = 'white',
bg.color = "dodgerblue4"
) +
tmap::tm_title(
text = "COVID-19 Deaths* in the Mid Atlantic",
size = 2.0,
color = "white",
) +
tmap::tm_credits("*as of June 01, 2020", col = "white", position = "left")
# }
Run the code above in your browser using DataLab