Convert data to 'GeoJSON' or 'TopoJSON' from various R
    classes, including vectors, lists, data frames, shape files, and
    spatial classes.  'geojsonio' does not aim to replace packages like
    'sp', 'rgdal', 'rgeos', but rather aims to be a high level client to
    simplify conversions of data from and to 'GeoJSON' and 'TopoJSON'.

Includes functions for processing GeoJson objects <https://en.wikipedia.org/wiki/GeoJSON> relying on 'RFC 7946' <https://datatracker.ietf.org/doc/html/rfc7946>. The geojson encoding is based on 'json11', a tiny JSON library for 'C++11' <https://github.com/dropbox/json11>. Furthermore, the source code is exported in R through the 'Rcpp' and 'RcppArmadillo' packages.

Converts Between GeoJSON and simple feature objects.

A collection of fast k-means clustering algorithms under a single,
    uniform interface. The core method is Geometric-k-means, a bound-free
    algorithm of Sharma et al. (2026) <doi:10.1007/s10994-025-06891-1> that uses
    geometry to restrict computation to the data points able to change clusters,
    substantially reducing distance computations and runtime while returning the
    same result as standard k-means. Also included are Lloyd's algorithm, Elkan,
    Hamerly, Annulus, Exponion, and Ball k-means. All algorithms are implemented
    in 'C++' via 'Rcpp' and 'RcppEigen' and return the final centroids, optional
    per-point cluster assignments, and computational statistics.

A compilation of tools to complete common tasks for studying gerrymandering. 
    This focuses on the geographic tool side of common problems, such as linking 
    different levels of spatial units or estimating how to break up units. Functions 
    exist for creating redistricting-focused data for the US.

Set of routines for making map projections (forward and inverse), topographic maps, perspective plots, geological maps, geological map symbols, geological databases, interactive plotting and selection of focus regions.

Data sets included here are for use with package GEOmap. These include world map, USA map, Coso map, Japan Map.