Learn R Programming

⚠️There's a newer version (0.11.1) of this package.Take me there.

icosa (version 0.11.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

308

Version

0.11.0

License

GPL-3

Maintainer

Adam Kocsis

Last Published

March 23rd, 2023

Functions in icosa (0.11.0)

gridlabs

Labels of grid vertices, faces and edges.
faces

The faces of a 3d object
faces3d

Methods of 3D face plotting.
[,gridlayer,ANY,missing-method

Extraction from a gridlayer using indices
facelayer-class

A facelayer linked to a trigrid or hexagrid object
gridgraph

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

Icosahedral grid-based density estimation
icosa

Global Triangular and Hexa-Pentagonal Grids Based on Tessellated Icosahedra
hexagrid-class

Construct a penta-hexagonal icosahedral grid
hexguide

Tessellation guide to hexagrid objects
names,gridlayer-method

The face names in a facelayer class object
locate

Basic lookup function of coordinates 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.
edgelength

Lengths of grid edges
lines3d

Methods of 3d line plotting
length,trigrid-method

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

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

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

Rotation of trigrid and hexagrid objects
newsp

Add a SpatialPolygons object to a predefined slot in a trigrid or hexagrid object
orientation

Extracting and setting the grid orientation
heatMapLegend

Legend for a heatmap with predefined colors.
newsf

Add a sf object to a predefined slot in a trigrid or hexagrid object
plot

Plot method for the trigrid, hexagrid or facelayer classes
trishape

Shape distortions of the triangular faces and subfaces
vertices

The vertices of an icosahedral grid object
triguide

Tessellation guide to trigrid objects
values

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

The edges of a 3d object
rpsphere

Random point generation on the surface of a sphere
subset

Subsetting an icosahedral grid or data layers organized with them
surfacearea

Areas of grid cell surfaces
plot3d

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

Position of face centers and vertices on a grid
surfacecentroid

Surface centroid point of a spherical point cloud
vicinity

The neighbouring faces of faces in an icosahedral grid
translate

Translating an icosahedral grid object in 3d Cartesian space
trigrid-class

A triangular icosahedral grid
occupied

Faces occupied by the specified object
arcdistmat

Calculation of distance matrices along arcs
arcpoints

Calculation of point coordinates along an arc
arcdist

Calculation of distances along arcs
centers

The face centers of an icosahedral grid object
chullsphere

Spherical convex hull.
cellocator

Locate grid faces based on their positions on a map
CarToPol

Conversion of 3d Cartesian coordinates to polar coordinates
PolToCar

Conversion of polar coordinates to 3d Cartesian coordinates
SpLines

Create a SpatialLines class object from an icosahedral grid
SpPolygons

Spatial polygons from an icosahedral grid