Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

occupied

Faces occupied by the specified object


Description

This function will return a facelayer class object showing which faces are occupied by the input object.

Usage

occupied(gridObj, data, ...)

Arguments

gridObj

(trigrid or hexagrid) An icoshedral grid.

data

(matrix, data.frame or Spatial) The queried data.

...

Arguments passed to the class specific methods

Details

This is a wrapper function on the OccupiedFaces methods that are specific to grid class and input data.

Value

The function Returns a facelayer-class object.

Examples

# create a grid
g <- trigrid(8, sp=TRUE)

# create random points
randPoints <- rpsphere(100,output="polar")

# the facelayer occupied by these points
randomLayer <- occupied(g, randPoints)
plot(randomLayer)
points(randPoints, col="blue", pch="+")

icosa

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.