Converting a “map” object to a “SpatialPolygon” object

后端 未结 2 542
臣服心动
臣服心动 2020-12-10 02:52

I am guessing there is a simple solution to the problem I have been having, but I am having some trouble.

I am trying to convert the following map objec

2条回答
  •  青春惊慌失措
    2020-12-10 03:23

    Polygons have surface (area), therefore the key argument is fill = TRUE in

    usa <- map('state', fill = TRUE)
    

    Changing the argument value to TRUE stops the error message.

提交回复
热议问题