orbis is an R package with tools to
simplify spatial data analysis. It provides an intuitive interface that
follows tidyverse
principles and
integrates seamlessly with the tidyverse
ecosystem.
If you find this project useful, please consider giving it a star! Β
The continuous development of
orbisdepends on community support. If you find this project useful, and can afford to do so, please consider becoming a sponsor. Β
You can install orbis using the
remotes package:
# install.packages("remotes")
remotes::install_github("danielvartan/orbis")orbis is equipped with several functions to help with your analysis,
such as:
shift_and_rotate(): Shift and rotate aSpatVectoror aSpatRasterremove_unique_outliers(): Remove unique outliers from raster filessidra_download_by_year(): Download and aggregate data by year from SIDRA API (to avoid overloading)worldclim_download(): Download WorldClim dataworldclim_to_ascii(): Convert WorldClim GeoTIFF files to Esri ASCII raster format
Here are some examples of usage.
shift_and_rotate()
was developed to simplify shifting and rotating spatial data, especially
for rasters and vectors that cross the International Date
Line (e.g.Β the
Russian territory).
library(orbis)
library(dplyr)
library(geodata)
library(ggplot2)
library(terra)
library(tidyterra)world_vector <- world(path = tempdir())world_vector |>
ggplot() +
geom_spatvector(fill = "#3243A6", color = "white")russia_vector <- gadm(country = "rus", level = 0, path = tempdir())russia_vector |>
ggplot() +
geom_spatvector(fill = "#3243A6", color = "white")russia_vector |>
shift_and_rotate(-45) |>
ggplot() +
geom_spatvector(fill = "#3243A6", color = "white")remove_unique_outliers()
was developed to simplify the removal of abnormal values in raster
files. It can be used with
GeoTIFF and Esri
ASCII
raster formats.
library(orbis)
library(dplyr)
library(readr)
library(stars)asc_content <- c(
"ncols 5",
"nrows 5",
"xllcorner 0.0",
"yllcorner 0.0",
"cellsize 1.0",
"NODATA_value -9999",
"1 2 3 4 5 ",
"6 7 8 9 10 ",
"11 12 1000 14 15 ", # Extreme outlier (1000)
"16 1 18 19 20 ",
"21 22 23 24 25 "
)file <- tempfile(fileext = ".asc")
asc_content |> write_lines(file)file |> read_stars() |> pull(1) |> as.vector()
#> [1] 1 2 3 4 5 6 7 8 9 10 11 12 1000 14
#> [15] 15 16 1 18 19 20 21 22 23 24 25file |> remove_unique_outliers()file |> read_stars() |> pull(1) |> as.vector()
#> [1] 1 2 3 4 5 6 7 8 9 10 11 12 NA 14 15 16 1 18 19 20 21 22 23 24
#> [25] 25Click here to see the
full list of orbis functions.
If you use this package in your research, please cite it to acknowledge the effort put into its development and maintenance. Your citation helps support its continued improvement.
citation("orbis")
#> To cite orbis in publications use:
#>
#> Vartanian, D. (2026). orbis: Spatial data analysis tools [Computer
#> software]. https://doi.org/10.5281/zenodo.18240800
#>
#> A BibTeX entry for LaTeX users is
#>
#> @Misc{,
#> title = {orbis: Spatial data analysis tools},
#> author = {Daniel Vartanian},
#> year = {2026},
#> doi = {10.5281/zenodo.18240800},
#> }Copyright (C) 2025 Daniel Vartanian
orbis is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.
Contributions are always welcome! Whether you want to report bugs, suggest new features, or help improve the code or documentation, your input makes a difference.
Before opening a new issue, please check the issues tab to see if your topic has already been reported.
You can also support the development of orbis by becoming a sponsor.
Click here to make a
donation. Please mention orbis in your donation message.



