Food and Agriculture Organisation of the United Nations (FAO) GIS R tools
R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
data
figure
man
vignettes
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
README.Rmd
README.md

README.md

gisfao

gisfao package provides you with the up-to-data shapefiles that are compatible with FAOSTAT country codes (FAO_CODE). Also, shapefiles data slots have a dummy variable for each FAO regions which you can subset the shapefile with. Fao regions are:

  • RAF (Africa)
  • LAC (Latin America and the Caribbean)
  • RAP (Asia and the Pacific)
  • REU (Europe and Central Asia)
  • RNE (Near East and North Africa)

Shapefiles included

  1. World Country Polygons fao_world - class SpatialPolygonDataFRame
  2. World Country Polygons Centroids fao_world_centroids - class SpatialPointDataFRame

See vignettes at

for more detailed examples.

Install packages

devtools::install_github('UNFAOstatistics/gisfao')

Load and plot the polygon data

library(gisfao)
library(sp)
data(fao_world)
plot(fao_world)

plot of chunk plot01

data(fao_world_centroids)
plot(fao_world_centroids)

plot of chunk plot01

data(graticule)
plot(graticule)

plot of chunk plot01