Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Ben Tupper
Hi, Yes, I flubbed that. I had it in my head that this... https://www.naturalearthdata.com/downloads/110m-physical-vectors/110m-land/ ... had Africa as a stand alone polygon, but that is not so. Sorry for the noise

Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Sohrab Abbasnejad via R-sig-Geo
Dear Zivan, Your solution did the job! Thank you very much! Best, Sohrab On ‎Saturday‎, ‎February‎ ‎2‎, ‎2019‎ ‎04‎:‎07‎:‎27‎ ‎PM‎ ‎CET, Zivan Karaman wrote: Hello Sohrab, You can start with country maps, and then merge them in a single polygon.For example, get the maps as a shape f

Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Sohrab Abbasnejad via R-sig-Geo
Dear Ben, Thank you for your reply. So far as I am aware, the rnaturalearth package provides information about countries within a continent, states within countries and "world" coastline (subsetting the coastline is not possible). Nevertheless, the package does not include maps/data of "conti

Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Zivan Karaman
Hello Sohrab, You can start with country maps, and then merge them in a single polygon. For example, get the maps as a shape file from here http://www.maplibrary.org/library/stacks/Africa/Africa_SHP.zip, unzip this file and run the following R code library(sp) library(rgdal) library(rgeos) countr

Re: [R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Ben Tupper
Hi, There is a whole world of options (sorry for the lame pun!), but I would recommend checking out ROpenSci's rnaturalearth package https://ropensci.org/tutorials/rnaturalearth_tutorial/ https://CRAN.R-project.org/package=rnaturalearth

[R-sig-Geo] How to get the coordinates (latitude/longitude) of a continent outline?

2019-02-02 Thread Sohrab Abbasnejad via R-sig-Geo
Hello, I would like to have the list of coordinates of the boundary (outline) of a continent (Africa). The "map" function from the "maps" package gives the coordinates for country outlines, but not the for the continents. Does anybody have an idea where I can find the data? Thank you! Cheers,