Given a data.frame with a subRegion column, this function searches for an appropriate map from the pre-loaded metis maps.
metis.mapFind(dataTbl)
dataTbl | Palette name to view the palette colors. Eg. metis.colors("pal_Basic") |
---|
dataframe with modified subRegions, subRegion shapefile and subRegion type
library(metis) data = data.frame(subRegion=c("FL","ID","MO"),value=c(-2,3,14)) metis::metis.mapFind(data)#>#> [1] "More than one pre-loaded map contain the subRegions in the data provided." #> [1] "Choosing map based on pre-set map ranking:" #> map subRegNum rank #> 1 subRegUS49 3 1.0 #> 2 subRegUS52 3 2.0 #> 3 subRegStates 3 9.0 #> 4 subRegCountriesUS52 3 15.0 #> 5 subRegGCAMReg32US52 3 15.5 #> [1] "To choose a different map, please assign it in subRegShape directly." #> [1] "Using map: US49"