ggplot2 - "Regions defined for each Polygons" when mapping shp with R -


i'm trying visualize land polygons natural earth

landdata2<-readogr("/home/pavel/documents/studium/hiwi/maps/ne_10m_land", "ne_10m_land") landgg2<- fortify(landdata2)

after second line message

"regions defined each polygons"

i fortified post of no use

why ggplot give blank page message "regions defined each polygons"?

i got data http://www.naturalearthdata.com/downloads/10m-physical-vectors/ used simple (not scale ranked) polygons

does know means?

best regards pavel

ok, went fast.

following post filling polygons of map using ggplot in r

the problem seems fortify not transfer id numeric variable

simply adding landgg$id <-as.numeric(landgg$id) helps

still not sure why message comes out , why true parts of data frame after "hole" variable (id, piece , group variable) problem fortify works. thought i'd leave here instead of deleting


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -