Académique Documents
Professionnel Documents
Culture Documents
spatiale
NGOULOU NGOUBILI Irch Defluviaire
Nous importons le fichier shapefile du S�negal qui contient 14 subdivistions qui repr�sentent
dans ce cas les r�gions administratives du pays.
library(sf)
library(mapsf)
library(ggplot2)
library(sp)
library(tmap)
Breaking News: tmap 3.x is retiring. Please test v4, e.g. with
remotes::install_github('r-tmap/tmap')
library(spdep)
1
library(spData)
library(GeoXp)
library(RColorBrewer)
library(ggspatial)
library(rnaturalearth)
Support for Spatial objects (`sp`) will be deprecated in {rnaturalearth} and will be removed
library(rnaturalearthdata)
countries110
library(dplyr)
filter, lag
library(mapsf)
senegal = st_read(dsn = "Shapefile/gadm41_SEN_1.shp", stringsAsFactors = F)
2
Reading layer `gadm41_SEN_1' from data source
`E:\ISEL 3\SES\Projet final\Shapefile\gadm41_SEN_1.shp' using driver `ESRI Shapefile'
Simple feature collection with 14 features and 11 fields
Geometry type: MULTIPOLYGON
Dimension: XY
Bounding box: xmin: -17.54319 ymin: 12.30786 xmax: -11.34247 ymax: 16.69207
Geodetic CRS: WGS 84
Saint−Louis
Saint−Louis
Saint−Louis
Louga
Louga
Louga
Matam
Matam
Matam
Thiès Diourbel
Dakar Thiès
Thiès Diourbel
Dakar
Dakar
Fatick
Fatick Kaffrine
Kaffrine
Fatick
Kaolack
Kaolack
Kaolack Tambacounda
Tambacounda
Tambacounda
Kolda
Kolda
Kolda
Sédhiou
Sédhiou
Sédhiou Kédougou
Kédougou
Kédougou
Ziguinchor
Ziguinchor
Ziguinchor
3
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <ef>
4
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <bf>
5
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <bd>
6
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <ef>
7
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <bf>
8
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <bd>
9
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <ef>
10
Warning in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
erreur de conversion de 'R�gions' dans 'mbcsToSbcs' : le point est substitué
pour <bf>
R...gions
Dakar
Diourbel
N
Fatick
Kaffrine
Kaolack
Kédougou
Kolda
Louga
Matam
Saint−Louis
Sédhiou
Tambacounda
100 km
Thiès
Ziguinchor
11
library(readxl)
sn_dta = read_excel("Sen_Data.xlsx")
names(sn_dta)
class(sn_df)
par(mar= c(0,0,0,1))
plot(sn_df$geometry)
text(st_coordinates(st_centroid(sn_df$geometry, of_largest_polygon=TRUE)), label=sn_df$NAM
12
Saint−Louis
Louga
Matam
Thiès Diourbel
Dakar
Fatick Kaffrine
Kaolack
Tambacounda
Kolda
Sédhiou Kédougou
Ziguinchor
13
Superficie
Saint−Louis
Thiès Diourbel
Dakar 30000
Kolda
Sédhiou Kédougou
Ziguinchor
14