Learn R Programming

icosa (version 0.12.0)

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

Description

Implementation of icosahedral grids in three dimensions. The spherical-triangular tessellation can be set to create grids with custom resolutions. Both the primary triangular and their inverted penta-hexagonal grids can be calculated. Additional functions are provided that allow plotting of the grids and associated data, the interaction of the grids with other raster and vector objects, and treating the grids as a graphs.

Copy Link

Version

Install

install.packages('icosa')

Monthly Downloads

251

Version

0.12.0

License

GPL-3

Maintainer

Adam Kocsis

Last Published

August 28th, 2025

Functions in icosa (0.12.0)

faces3d

Methods of 3D face plotting.
gridensity

Icosahedral grid-based density estimation Spatial density estimation algorithm based on rotation of icosahedral grids.
chullsphere

Spherical convex hull.
faces

The face names of a trigrid or hexagrid object
gridgraph

Create or instantiate an graph class graph from the faces of an icosahedral grid
face2nb

Make an spdep-style neighbor list for an icosahedral grid
edgelength

Lengths of grid edges
edges

The edges of a 3d object
[,gridlayer,ANY,missing-method

Extraction from a gridlayer using indices
facelayer-class

A facelayer linked to a trigrid or hexagrid object
hexagrid-class

Construct a penta-hexagonal icosahedral grid
hexguide

Tessellation guide to hexagrid objects
heatMapLegend

Legend for a heatmap with predefined colors.
icosa

Global Triangular and Hexa-Pentagonal Grids Based on Tessellated Icosahedra
gridlabs

Labels of grid vertices, faces and edges.
length,trigrid-method

The number of faces in a trigrid or hexagrid class object.
holes

Holes of shapes on an icosahedral grid
guides3d

Guides for 3d spherical plotting.
lines,trigrid-method

Lines method for the trigrid and hexagrid classes
gridlabs3d

Display the names of the grid elements in 3d plots.
newsf

Add a sf object to a predefined slot in a trigrid or hexagrid object
names,gridlayer-method

The face names in a facelayer class object
patches

Patches of shapes on an icosahedral grid
occupied

Faces occupied by the specified object
newgraph

Add an igraph object to a predefined slot in an icosahedral grid
newsp

Add a SpatialPolygons object to a predefined slot in a trigrid or hexagrid object
rotate,matrix-method

Rotation of 3d objects
surfacecentroid

Surface centroid point of a spherical point cloud
surfacearea

Areas of grid cell surfaces
locate

Basic lookup function of coordinates on an icosahedral grid
resample

Resampling of data involving a trigrid or a hexagrid object.
spacing

Spacing of cell centers
orientation

Extracting and setting the grid orientation
lines3d

Methods of 3d line plotting
subset

Subsetting an icosahedral grid or data layers organized with them
saveOBJ

Export trigrid class object as Wavefront .obj file
rpsphere

Random point generation on the surface of a sphere
vicinity

The neighbouring faces of faces in an icosahedral grid
plot3d

3d plotting of an icosahedral grid, its subset or a data layer
pos

Position of face centers and vertices on a grid
vertices

The vertices of an icosahedral grid object
trigrid-class

A triangular icosahedral grid
translate

Translating an icosahedral grid object in 3d Cartesian space
plot

Plot method for the trigrid, hexagrid or facelayer classes
vertexradius

Calculate the vertex radii of icosahedral grid faces
values

Extract and replace values from a gridlayer-derived object (e.g. link{facelayer}).
trishape

Shape distortions of the triangular faces and subfaces
triguide

Tessellation guide to trigrid objects
SpPolygons

Spatial polygons from an icosahedral grid
SpLines

Create a SpatialLines class object from an icosahedral grid
cellocator

Locate grid faces based on their positions on a map
arcdist

Calculation of distances along arcs
PolToCar

Conversion of polar coordinates to 3d Cartesian coordinates
centers

The face centers of an icosahedral grid object
arcpoints

Calculation of point coordinates along an arc
arcdistmat

Calculation of distance matrices along arcs
CarToPol

Conversion of 3d Cartesian coordinates to polar coordinates
arcs

Function to plot a set of great circle arcs between points