Package: icosa 0.11.1

Adam T. Kocsis

icosa: Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

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.

Authors:Adam T. Kocsis [cre, aut], Deutsche Forschungsgemeinschaft [fnd], FAU GeoZentrum Nordbayern [fnd]

icosa_0.11.1.tar.gz
icosa_0.11.1.zip(r-4.5)icosa_0.11.1.zip(r-4.4)icosa_0.11.1.zip(r-4.3)
icosa_0.11.1.tgz(r-4.4-x86_64)icosa_0.11.1.tgz(r-4.4-arm64)icosa_0.11.1.tgz(r-4.3-x86_64)icosa_0.11.1.tgz(r-4.3-arm64)
icosa_0.11.1.tar.gz(r-4.5-noble)icosa_0.11.1.tar.gz(r-4.4-noble)
icosa_0.11.1.tgz(r-4.4-emscripten)icosa_0.11.1.tgz(r-4.3-emscripten)
icosa.pdf |icosa.html
icosa/json (API)
NEWS

# Install 'icosa' in R:
install.packages('icosa', repos = c('https://icosa-grid.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/icosa-grid/r-icosa/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:
  • hexguide - Tessellation guide to 'hexagrid' objects
  • triguide - Tessellation guide to 'trigrid' objects

On CRAN:

grid

5.28 score 3 stars 64 scripts 278 downloads 51 exports 24 dependencies

Last updated 3 months agofrom:0a5399b601. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKOct 16 2024
R-4.5-win-x86_64OKOct 16 2024
R-4.5-linux-x86_64OKOct 16 2024
R-4.4-win-x86_64OKOct 16 2024
R-4.4-mac-x86_64OKOct 16 2024
R-4.4-mac-aarch64OKOct 16 2024
R-4.3-win-x86_64OKOct 16 2024
R-4.3-mac-x86_64OKOct 16 2024
R-4.3-mac-aarch64OKOct 16 2024

Exports:arcdistarcdistmatarcpointsarcsCarToPolcellocatorcenterschullsphereedgelengthedgesfacelayerfacesfaces3dgridensitygridgraphgridlabsgridlabs3dguides3dheatMapLegendhexagridlineslines3dlocatenewgraphnewsfnewspoccupiedorientationorientation<-plotplot3dplot3d.facelayerplot3d.hexagridplot3d.trigridPolToCarposresamplerotaterpsphereSpLinesSpPolygonssubsetsurfaceareasurfacecentroidtranslatetrigridtrishapevaluesvalues<-verticesvicinity

Dependencies:classclassIntclicpp11DBIe1071glueigraphKernSmoothlatticelifecyclemagrittrMASSMatrixpkgconfigproxyRcpprlangs2sfspunitsvctrswk

About icosa in one line. Tutorials available on package website

Rendered fromicosa_cran.Rmdusingknitr::rmarkdownon Oct 16 2024.

Last update: 2024-08-16
Started: 2023-03-22

Readme and manuals

Help Manual

Help pageTopics
Extraction from a gridlayer using indices[,gridlayer,ANY,missing-method [,gridlayer,SpatExtent,missing-method [<-,gridlayer,ANY,ANY-method [<-,gridlayer-method
Calculation of distances along arcsarcdist
Calculation of distance matrices along arcsarcdistmat
Calculation of point coordinates along an arcarcpoints
Function to plot a set of great circle arcs between pointsarcs arcs,matrix-method
Conversion of 3d Cartesian coordinates to polar coordinatesCarToPol CarToPol,data.frame-method CarToPol,matrix-method CarToPol,numeric-method
Locate grid faces based on their positions on a mapcellocator
The face centers of an icosahedral grid objectcenters centers,facelayer-method centers,trigrid-method
Spherical convex hull.chullsphere
Lengths of grid edgesedgelength edgelength,trigrid-method
The edges of a 3d objectedges edges,facelayer-method edges,obj3d-method
A 'facelayer' linked to a 'trigrid' or 'hexagrid' objectfacelayer facelayer-class
The face names of a trigrid or hexagrid objectfaces faces,gridlayer-method faces,trigrid-method
Methods of 3D face plotting.faces3d faces3d,facelayer-method faces3d,hexagrid-method faces3d,trigrid-method
Icosahedral grid-based density estimationgridensity
Create or instantiate an 'graph' class graph from the faces of an icosahedral gridgridgraph gridgraph,facelayer-method gridgraph,hexagrid-method gridgraph,trigrid-method
Labels of grid vertices, faces and edges.gridlabs
Display the names of the grid elements in 3d plots.gridlabs3d gridlabs3d,hexagrid-method gridlabs3d,trigrid-method
Guides for 3d spherical plotting.guides3d
Legend for a heatmap with predefined colors.heatMapLegend
Construct a penta-hexagonal icosahedral gridhexagrid hexagrid-class
Tessellation guide to 'hexagrid' objectshexguide
Global Triangular and Hexa-Pentagonal Grids Based on Tessellated Icosahedraicosa-package icosa
The number of faces in a 'trigrid' or 'hexagrid' class object.length,gridlayer-method length,trigrid-method
Lines method for the 'trigrid' and 'hexagrid' classeslines,trigrid-method
Methods of 3d line plottinglines3d lines3d,Line-method lines3d,Lines-method lines3d,Polygon-method lines3d,Polygons-method lines3d,SpatialLines-method lines3d,SpatialLinesDataFrame-method lines3d,SpatialPolygons-method lines3d,SpatialPolygonsDataFrame-method lines3d,trigrid-method
Basic lookup function of coordinates on an icosahedral gridlocate locate,hexagrid,matrix-method locate,trigrid,data.frame-method locate,trigrid,matrix-method locate,trigrid,numeric-method locate,trigrid,sf-method locate,trigrid,SpatialPoints-method locate,trigrid,SpatialPointsDataFrame-method
The face names in a 'facelayer' class objectnames,gridlayer-method
Add an igraph object to a predefined slot in an icosahedral gridnewgraph newgraph,trigrid-method
Add a 'sf' object to a predefined slot in a 'trigrid' or 'hexagrid' objectnewsf newsf,trigrid-method
Add a 'SpatialPolygons' object to a predefined slot in a 'trigrid' or 'hexagrid' objectnewsp newsp,trigrid-method
Faces occupied by the specified objectoccupied
Extracting and setting the grid orientationorientation orientation,trigrid-method orientation<- orientation<-,trigrid-method
Plot method for the 'trigrid', 'hexagrid' or 'facelayer' classesplot plot,facelayer,ANY-method plot,trigrid,ANY-method plot,trigrid,array-method plot,trigrid,character-method plot,trigrid,logical-method plot,trigrid,numeric-method plot,trigrid,table-method
3d plotting of an icosahedral grid, its subset or a data layerplot3d plot3d.facelayer plot3d.hexagrid plot3d.trigrid
Conversion of polar coordinates to 3d Cartesian coordinatesPolToCar PolToCar,data.frame-method PolToCar,matrix-method PolToCar,numeric-method
Position of face centers and vertices on a gridpos
Resampling of data involving a 'trigrid' or a 'hexagrid' object.resample resample,facelayer,SpatRaster-method resample,facelayer,trigrid-method resample,SpatRaster,trigrid-method
Rotation of 'trigrid' and 'hexagrid' objectsrotate rotate,trigrid-method
Random point generation on the surface of a sphererpsphere
Create a 'SpatialLines' class object from an icosahedral gridSpLines SpLines,trigrid-method
Spatial polygons from an icosahedral gridSpPolygons SpPolygons,hexagrid-method SpPolygons,trigrid-method
Subsetting an icosahedral grid or data layers organized with themsubset subset,gridlayer-method subset,hexagrid-method subset,trigrid-method [,trigrid,ANY,ANY-method
Areas of grid cell surfacessurfacearea surfacearea,hexagrid-method surfacearea,trigrid-method
Surface centroid point of a spherical point cloudsurfacecentroid surfacecentroid,data.frame-method surfacecentroid,matrix-method surfacecentroid,SpatialPoints-method
Translating an icosahedral grid object in 3d Cartesian spacetranslate translate,hexagrid,numeric-method translate,trigrid,numeric-method
A triangular icosahedral gridtrigrid trigrid-class
Tessellation guide to 'trigrid' objectstriguide
Shape distortions of the triangular faces and subfacestrishape trishape,hexagrid-method trishape,trigrid-method
Extract and replace values from a gridlayer-derived object (e.g. 'link{facelayer}').values values,gridlayer-method values<- values<-,gridlayer,ANY-method values<-,gridlayer-method
The vertices of an icosahedral grid objectvertices vertices,facelayer-method vertices,trigrid-method
The neighbouring faces of faces in an icosahedral gridvicinity vicinity,trigrid,character-method