Shiny Tutorial Lesson 5: Map References in Helpers.R

Hi Community,

The 'helpers.R' file makes reference to the 'county' and 'state' maps in code lines 17 and 22. Where is the reference to these map names in the main script of the tutorial and in the 'counties.rds' dataset? The tutorial makes reference to the data columns 'name', 'total.pop', 'white', 'black', 'Hispanic', and 'Asian'. Are the 'county' and 'state' map names arbitrary?

plot choropleth map

map("county", fill = TRUE, col = fills,
resolution = 0, lty = 0, projection = "polyconic",
myborder = 0, mar = c(0,0,0,0))

overlay state borders

map("state", col = "white", fill = FALSE, add = TRUE,
lty = 1, lwd = 1, projection = "polyconic",
myborder = 0, mar = c(0,0,0,0))

Many thanks,

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.