get_wrld_simpl: return the wrld_simpl data set from maptools

Description Usage Examples

View source: R/data.R

Description

I define this as a function so that we don't have to attach maptools, but we can just have it in the imports. Couldn't figure out how to do it otherwise.

Usage

1

Examples

1
2
3
ws <- get_wrld_simpl()
head(ws)
## Not run: plot(ws)

Example output

Loading required package: sp
An object of class "SpatialPolygonsDataFrame"
Slot "data":
    FIPS ISO2 ISO3 UN                NAME   AREA  POP2005 REGION SUBREGION
ATG   AC   AG  ATG 28 Antigua and Barbuda     44    83039     19        29
DZA   AG   DZ  DZA 12             Algeria 238174 32854159      2        15
AZE   AJ   AZ  AZE 31          Azerbaijan   8260  8352021    142       145
ALB   AL   AL  ALB  8             Albania   2740  3153731    150        39
ARM   AM   AM  ARM 51             Armenia   2820  3017661    142       145
AGO   AO   AO  AGO 24              Angola 124670 16095214      2        17
        LON     LAT
ATG -61.783  17.078
DZA   2.632  28.163
AZE  47.395  40.430
ALB  20.068  41.143
ARM  44.563  40.534
AGO  17.544 -12.296

Slot "polygons":
[[1]]
An object of class "Polygons"
Slot "Polygons":
[[1]]
An object of class "Polygon"
Slot "labpt":
[1] -61.78945  17.09768

Slot "area":
[1] 0.009571241

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
          [,1]     [,2]
[1,] -61.68667 17.02444
[2,] -61.88722 17.10527
[3,] -61.79445 17.16333
[4,] -61.68667 17.02444


[[2]]
An object of class "Polygon"
Slot "labpt":
[1] -61.81843  17.63185

Slot "area":
[1] 0.007740412

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
          [,1]     [,2]
[1,] -61.72917 17.60861
[2,] -61.85306 17.58305
[3,] -61.87306 17.70389
[4,] -61.72917 17.60861



Slot "plotOrder":
[1] 1 2

Slot "labpt":
[1] -61.78945  17.09768

Slot "ID":
[1] "ATG"

Slot "area":
[1] 0.01731165


[[2]]
An object of class "Polygons"
Slot "Polygons":
[[1]]
An object of class "Polygon"
Slot "labpt":
[1]  2.627813 28.172110

Slot "area":
[1] 213.9407

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
           [,1]     [,2]
 [1,]  2.963610 36.80222
 [2,]  4.785832 36.89472
 [3,]  5.328055 36.64027
 [4,]  6.398333 37.08639
 [5,]  8.622030 36.94137
 [6,]  8.183611 36.52416
 [7,]  8.251665 34.64444
 [8,]  7.492499 33.88750
 [9,]  8.348610 32.53333
[10,]  9.055277 32.10000
[11,]  9.537113 30.23439
[12,]  9.303888 30.12250
[13,]  9.766388 29.42778
[14,]  9.948332 27.82444
[15,]  9.871666 26.51416
[16,]  9.398333 26.15333
[17,] 10.252222 24.60583
[18,] 11.558887 24.30250
[19,] 11.986475 23.52231
[20,]  7.450807 20.85286
[21,]  5.812499 19.44611
[22,]  4.245277 19.14666
[23,]  3.331944 18.97639
[24,]  3.233055 19.82027
[25,]  1.795833 20.30833
[26,]  1.167500 20.74111
[27,]  1.169662 21.10254
[28,] -4.806111 25.00028
[29,] -6.662778 26.12917
[30,] -8.666790 27.29046
[31,] -8.666668 27.66666
[32,] -8.667223 28.70944
[33,] -7.123889 29.63694
[34,] -5.538334 29.90250
[35,] -4.920556 30.50805
[36,] -3.626667 30.97055
[37,] -3.818334 31.69555
[38,] -2.853889 32.08833
[39,] -1.180556 32.11055
[40,] -1.010278 32.50833
[41,] -1.668056 33.26111
[42,] -1.747222 34.74721
[43,] -2.209445 35.08583
[44,]  0.950000 36.45027
[45,]  2.963610 36.80222



Slot "plotOrder":
[1] 1

Slot "labpt":
[1]  2.627813 28.172110

Slot "ID":
[1] "DZA"

Slot "area":
[1] 213.9407


[[3]]
An object of class "Polygons"
Slot "Polygons":
[[1]]
An object of class "Polygon"
Slot "labpt":
[1] 47.67525 40.34927

Slot "area":
[1] 8.494524

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
          [,1]     [,2]
 [1,] 46.57138 41.87193
 [2,] 47.76693 41.19609
 [3,] 48.58396 41.83577
 [4,] 49.52805 40.66277
 [5,] 50.37499 40.26222
 [6,] 49.48805 40.15054
 [7,] 48.88828 38.44241
 [8,] 48.02082 38.83554
 [9,] 48.35979 39.38522
[10,] 47.97666 39.71923
[11,] 46.54038 38.87559
[12,] 46.54138 39.56444
[13,] 45.59582 39.97804
[14,] 46.00194 40.22555
[15,] 45.15387 41.19860
[16,] 45.02294 41.29705
[17,] 45.33666 41.46250
[18,] 46.52082 41.04999
[19,] 46.69387 41.31220
[20,] 46.19443 41.68582
[21,] 46.45175 41.89706
[22,] 46.57138 41.87193


[[2]]
An object of class "Polygon"
Slot "labpt":
[1] 45.49023 39.39222

Slot "area":
[1] 0.5056316

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
         [,1]     [,2]
[1,] 45.08332 39.76805
[2,] 45.81999 39.54972
[3,] 46.17825 38.84115
[4,] 45.00443 39.41638
[5,] 44.81304 39.63082
[6,] 44.77886 39.70638
[7,] 45.08332 39.76805


[[3]]
An object of class "Polygon"
Slot "labpt":
[1] 45.53453 40.63508

Slot "area":
[1] 0.001693513

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
         [,1]     [,2]
[1,] 45.51305 40.60722
[2,] 45.51749 40.66554
[3,] 45.57305 40.63249
[4,] 45.51305 40.60722


[[4]]
An object of class "Polygon"
Slot "labpt":
[1] 45.01879 41.05240

Slot "area":
[1] 0.0009946189

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
         [,1]     [,2]
[1,] 45.04527 41.03527
[2,] 45.00999 41.03305
[3,] 45.00111 41.08888
[4,] 45.04527 41.03527


[[5]]
An object of class "Polygon"
Slot "labpt":
[1] 45.22342 40.98129

Slot "area":
[1] 0.0003603638

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
         [,1]     [,2]
[1,] 45.24527 40.97694
[2,] 45.22916 40.96915
[3,] 45.19582 40.99777
[4,] 45.24527 40.97694



Slot "plotOrder":
[1] 1 2 3 4 5

Slot "labpt":
[1] 47.67525 40.34927

Slot "ID":
[1] "AZE"

Slot "area":
[1] 9.003204


[[4]]
An object of class "Polygons"
Slot "Polygons":
[[1]]
An object of class "Polygon"
Slot "labpt":
[1] 20.07437 41.13255

Slot "area":
[1] 2.890429

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
          [,1]     [,2]
 [1,] 19.43621 41.02107
 [2,] 19.60056 41.79666
 [3,] 19.36777 41.84900
 [4,] 19.64583 42.61805
 [5,] 20.07142 42.56091
 [6,] 20.58964 41.88219
 [7,] 20.49278 41.33111
 [8,] 20.82111 40.90888
 [9,] 20.98349 40.85589
[10,] 20.67194 40.09805
[11,] 20.01003 39.69120
[12,] 19.86305 40.03972
[13,] 19.28861 40.41750
[14,] 19.47861 40.35027
[15,] 19.43621 41.02107



Slot "plotOrder":
[1] 1

Slot "labpt":
[1] 20.07437 41.13255

Slot "ID":
[1] "ALB"

Slot "area":
[1] 2.890429


[[5]]
An object of class "Polygons"
Slot "Polygons":
[[1]]
An object of class "Polygon"
Slot "labpt":
[1] 44.98386 40.30433

Slot "area":
[1] 3.208623

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
          [,1]     [,2]
 [1,] 45.15387 41.19860
 [2,] 46.00194 40.22555
 [3,] 45.59582 39.97804
 [4,] 46.54138 39.56444
 [5,] 46.54038 38.87559
 [6,] 46.17825 38.84115
 [7,] 45.81999 39.54972
 [8,] 45.08332 39.76805
 [9,] 44.77886 39.70638
[10,] 44.34722 40.02389
[11,] 43.65750 40.10860
[12,] 43.75194 40.74000
[13,] 43.46077 41.11296
[14,] 45.02294 41.29705
[15,] 45.15387 41.19860


[[2]]
An object of class "Polygon"
Slot "labpt":
[1] 45.53453 40.63508

Slot "area":
[1] 0.001693513

Slot "hole":
[1] TRUE

Slot "ringDir":
[1] -1

Slot "coords":
         [,1]     [,2]
[1,] 45.57305 40.63249
[2,] 45.51749 40.66554
[3,] 45.51305 40.60722
[4,] 45.57305 40.63249


[[3]]
An object of class "Polygon"
Slot "labpt":
[1] 45.01879 41.05240

Slot "area":
[1] 0.0009946189

Slot "hole":
[1] TRUE

Slot "ringDir":
[1] -1

Slot "coords":
         [,1]     [,2]
[1,] 45.00999 41.03305
[2,] 45.04527 41.03527
[3,] 45.00111 41.08888
[4,] 45.00999 41.03305


[[4]]
An object of class "Polygon"
Slot "labpt":
[1] 45.22342 40.98129

Slot "area":
[1] 0.0003603638

Slot "hole":
[1] TRUE

Slot "ringDir":
[1] -1

Slot "coords":
         [,1]     [,2]
[1,] 45.19582 40.99777
[2,] 45.22916 40.96915
[3,] 45.24527 40.97694
[4,] 45.19582 40.99777



Slot "plotOrder":
[1] 1 2 3 4

Slot "labpt":
[1] 44.98386 40.30433

Slot "ID":
[1] "ARM"

Slot "area":
[1] 3.208623


[[6]]
An object of class "Polygons"
Slot "Polygons":
[[1]]
An object of class "Polygon"
Slot "labpt":
[1]  17.55246 -12.35038

Slot "area":
[1] 103.8622

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
          [,1]       [,2]
 [1,] 13.99750  -5.848612
 [2,] 16.57972  -5.900833
 [3,] 16.94167  -7.198610
 [4,] 17.62417  -8.098057
 [5,] 19.37306  -7.996111
 [6,] 19.53895  -6.996614
 [7,] 20.62975  -6.913881
 [8,] 20.54872  -7.283615
 [9,] 21.78296  -7.280842
[10,] 21.79056  -9.405556
[11,] 22.31222 -10.364445
[12,] 22.25389 -11.209723
[13,] 23.98621 -10.870461
[14,] 24.02056 -13.006390
[15,] 21.99833 -13.004168
[16,] 22.00015 -16.171661
[17,] 23.47611 -17.625835
[18,] 23.28472 -17.662502
[19,] 20.85417 -18.016392
[20,] 18.91583 -17.815556
[21,] 18.45154 -17.389835
[22,] 13.99322 -17.423946
[23,] 13.16055 -16.952778
[24,] 11.75278 -17.254833
[25,] 11.82083 -16.503056
[26,] 11.81083 -15.993057
[27,] 11.73139 -15.846668
[28,] 12.50972 -13.425280
[29,] 13.79250 -11.791668
[30,] 13.77361 -10.684723
[31,] 12.98445  -9.087502
[32,] 13.39139  -8.387222
[33,] 12.24500  -6.098055
[34,] 13.17888  -5.856329
[35,] 13.99750  -5.848612


[[2]]
An object of class "Polygon"
Slot "labpt":
[1] 12.469108 -5.056746

Slot "area":
[1] 0.615941

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
         [,1]      [,2]
[1,] 13.08889 -4.662500
[2,] 12.56555 -5.025555
[3,] 12.52667 -5.724167
[4,] 12.21455 -5.768555
[5,] 12.02613 -5.014996
[6,] 12.77905 -4.388990
[7,] 13.09139 -4.633055
[8,] 13.08889 -4.662500


[[3]]
An object of class "Polygon"
Slot "labpt":
[1]  11.73981 -16.69852

Slot "area":
[1] 0.001240163

Slot "hole":
[1] FALSE

Slot "ringDir":
[1] 1

Slot "coords":
         [,1]      [,2]
[1,] 11.75083 -16.75528
[2,] 11.69361 -16.53556
[3,] 11.77500 -16.80473
[4,] 11.75083 -16.75528



Slot "plotOrder":
[1] 1 2 3

Slot "labpt":
[1]  17.55246 -12.35038

Slot "ID":
[1] "AGO"

Slot "area":
[1] 104.4794



Slot "plotOrder":
[1] 2 6 3 5 4 1

Slot "bbox":
        min      max
x -61.88722 50.37499
y -18.01639 42.61805

Slot "proj4string":
CRS arguments:
 +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs +towgs84=0,0,0 

gaiah documentation built on July 8, 2020, 6:12 p.m.