Giter VIP home page Giter VIP logo

Comments (2)

mps9506 avatar mps9506 commented on June 24, 2024

Hi Jim,

I believe there are some inconsistencies in the file naming (among other naming conventions) in the Natural Earth dataset. If you install the dev version of rnaturalearth:

remotes::install_github("ropensci/rnaturalearth")

there is a function to see the currently available datasets. This info is pulled from the Natural Earth github repo so should be up to date.

rnaturalearth::ne_find_vector_data(scale = 10, category = "cultural")

which returns:

1              admin_0_antarctic_claim_limit_lines    10
2                         admin_0_antarctic_claims    10
3            admin_0_boundary_lines_disputed_areas    10
4                      admin_0_boundary_lines_land    10
5                 admin_0_boundary_lines_map_units    10
6        admin_0_boundary_lines_maritime_indicator    10
7                                admin_0_countries    10
8                          admin_0_countries_lakes    10
9                           admin_0_disputed_areas    10
10 admin_0_disputed_areas_scale_rank_minor_islands    10
11                            admin_0_label_points    10
12                            admin_0_map_subunits    10
13                               admin_0_map_units    10
14                       admin_0_pacific_groupings    10
15                              admin_0_scale_rank    10
16                admin_0_scale_rank_minor_islands    10
17                                   admin_0_seams    10
18                             admin_0_sovereignty    10
19                            admin_1_label_points    10
20                                   admin_1_seams    10
21                        admin_1_states_provinces    10
22                  admin_1_states_provinces_lakes    10
23                  admin_1_states_provinces_lines    10
24             admin_1_states_provinces_scale_rank    10
25                                        airports    10
26                  parks_and_protected_lands_area    10
27                  parks_and_protected_lands_line    10
28                 parks_and_protected_lands_point    10
29            parks_and_protected_lands_scale_rank    10
30                                populated_places    10
31                         populated_places_simple    10
32                                           ports    10
33                                       railroads    10
34                         railroads_north_america    10
35                                           roads    10
36                             roads_north_america    10
37                                      time_zones    10
38                                     urban_areas    10
39                            urban_areas_landscan    10

I think admin_0_disputed_areas is what you are looking for (if so, I have no idea why they are named differently. So, finally:

ne_download(scale = 10, type = "admin_0_disputed_areas", category = "cultural")

from rnaturalearth.

JimShady avatar JimShady commented on June 24, 2024

Awesome, thanks @mps9506 .

from rnaturalearth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.