R 地图包显示县作为通配符模式
R maps package displaying county as wildcard pattern
R 地图包将县显示为通配符模式。
前任。尝试画画时 - map("county", region=c("texas,gray"))
地图获取县 - "grey" 和 "greyson",而期望只绘制灰色县。
任何 fixes/workarounds?
见?maps::map
exact
If TRUE, only exact matches with regions are selected for
drawing. If FALSE, each element of regions is matched as a regular
expression against the polygon names in the database and all matches
are selected for drawing.
map("county", region=c("texas,gray"), exact=TRUE)
R 地图包将县显示为通配符模式。
前任。尝试画画时 - map("county", region=c("texas,gray"))
地图获取县 - "grey" 和 "greyson",而期望只绘制灰色县。
任何 fixes/workarounds?
见?maps::map
exact
If TRUE, only exact matches with regions are selected for drawing. If FALSE, each element of regions is matched as a regular expression against the polygon names in the database and all matches are selected for drawing.
map("county", region=c("texas,gray"), exact=TRUE)