simple_basis | R Documentation |
Uses data provided to place points across the range of the provided coordinates. The points are set out along the wider coordinate range according to the number provided. Points along the shorter ranging coordinate then adhere to this spacing. The points are then returned as a data frame of the same format as in 'FRK::auto_basis', the scale is provided based on one of two radius options. For use in bi-square basis functions with local support.
simple_basis(
nodes.on.long.edge,
data,
radius.type = c("diag", "limiting"),
coord.names = c("x", "y"),
longlat = FALSE
)
nodes.on.long.edge |
integer describing the number of basis function nodes to place along the longest edge of the domain |
data |
a data frame containing the two coordinates described by 'coord.names' |
radius.type |
character string describing the type of radius length to use. One of 'diag' = diagonal dist. between nodes or 'limiting' = sqrt(Domain Area)/log(k). |
coord.names |
vector of character strings describing the names of the coordinates in 'data'. Ordered horizontal axis to vertical |
longlat |
a logical indicating whether the coordinates are in Longitude and Latitude so that the radius can be extended to the maximum geodesic distance between nodes. Defaults to |
a simple basis data frame of class 'bf.df'. Consisting of columns: horizontal axis location, vertical axis location, scale (radius), res (resolution id).
# Base the basis function nodes on the locations of presence records and quadrature
bfs <- simple_basis(nodes.on.long.edge = 9, data = gorillas)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.