https://github.com/e-kotov/albofr
alboFr: Get French Data on Tiger Mosquito Colonisation
https://github.com/e-kotov/albofr
aedes-albopictus data france tiger-mosquito
Last synced: 14 days ago
JSON representation
alboFr: Get French Data on Tiger Mosquito Colonisation
- Host: GitHub
- URL: https://github.com/e-kotov/albofr
- Owner: e-kotov
- License: other
- Created: 2025-02-22T18:17:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T19:17:53.000Z (over 1 year ago)
- Last Synced: 2025-09-04T20:03:06.227Z (10 months ago)
- Topics: aedes-albopictus, data, france, tiger-mosquito
- Language: R
- Homepage: http://www.ekotov.pro/alboFr/
- Size: 3.32 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
- Citation: CITATION.cff
- Codemeta: codemeta.json
Awesome Lists containing this project
README
# alboFr
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://CRAN.R-project.org/package=alboFr)
[](https://github.com/e-kotov/alboFr/actions/workflows/R-CMD-check.yaml)
[](https://doi.org/https://doi.org/10.5281/zenodo.14914417)
The goal of `alboFr` is to retrieve the latest online data from https://signalement-moustique.anses.fr/signalement_albopictus/colonisees
and convert them into an `sf` object.
## Installation
You can install the development version of `alboFr` from R-universe
with:
``` r
install.packages("alboFr",
repos = c("https://e-kotov.r-universe.dev",
"https://cloud.r-project.org"
)
)
```
You can also install the development version of `alboFr` from
[GitHub](https://github.com/e-kotov/alboFr) with:
``` r
# install.packages("pak")
pak::pak("e-kotov/alboFr")
```
## Example with `sf` data type
The package only has one function to get the data:
``` r
library(alboFr)
x_sf <- get_tiger_mosquito_colonisation_in_france(output = "sf")
```
``` r
head(x_sf)
```
Simple feature collection with 6 features and 1 field
Geometry type: POLYGON
Dimension: XY
Bounding box: xmin: 1.195249 ymin: 42.99451 xmax: 7.835923 ymax: 48.64427
Geodetic CRS: WGS 84
toujours_signaler geometry
1 TRUE POLYGON ((7.77076 48.49202,...
2 TRUE POLYGON ((1.987127 42.99451...
3 TRUE POLYGON ((1.584032 44.76673...
4 TRUE POLYGON ((1.249545 44.34751...
5 TRUE POLYGON ((2.566791 43.02245...
6 TRUE POLYGON ((3.502814 43.97531...
The data can then be plotted:
``` r
library(ggplot2)
p <- ggplot(x_sf) +
geom_sf(aes(fill = toujours_signaler), col = NA) +
facet_wrap(~toujours_signaler)
p
# ggsave(
# filename = "man/figures/map.png",
# plot = p,
# width = 5,
# height = 4,
# units = "in",
# dpi = 300
# )
```

Finally the data can be saved to a GeoPackage file:
``` r
library(sf)
st_write(x_sf, "tiger_mosquito_colonisation_in_france.gpkg")
```
## Example without `sf` data type
You do not have to have `sf` package installed to use {`alboFr`}. You
can just retrieve the data in `geojson` format and save it directly to
disk bypassing the `sf` object creation:
``` r
x_geojson <- get_tiger_mosquito_colonisation_in_france(output = "geojson")
writeLines(x_geojson, "tiger_mosquito_colonisation_in_france.geojson")
```
## Data license
The original data does not have a well defined license, but the legal
matters regarding this data can be found here:
.
## Data archive
The data provider does not supply data versioning, but you can find the
daily automatic snapshots of the data in this GitHub repository
or at Zenodo
.
## Citation
To cite package ‘alboFr’ in publications use:
Kotov E (2025). *alboFr: Get French Data on Tiger Mosquito
Colonisation*. .
BibTeX:
@Manual{albofr,
title = {alboFr: Get French Data on Tiger Mosquito Colonisation},
author = {Egor Kotov},
year = {2025},
url = {https://github.com/e-kotov/alboFr},
}