Topic: Spatial

Topic Description:

Functions for calculating Ripley's K from CTFS R Analytical Tables, many routines for quadrat-based calculations. and calculations of wavelet variance.



File: spatial/quadfunc.r

View File Source Download File No help file available

Function: gxgy.to.lxly

Function Description: gxgy.to.lxly

Given global coordinates and quadrat and plot dimensions, calculate local x and y, the within-quadrat coordinates

Function Arguments:

ArgumentDefault Value
gx
gy
gridsize20
plotdimc(1000,500)

Function Source:

gxgy.to.lxly=function(gx,gy,gridsize=20,plotdim=c(1000,500))
{
rc=gxgy.to.rowcol(gx,gy,gridsize,plotdim)-1

lx=gx-gridsize*rc$col
ly=gy-gridsize*rc$row

return(data.frame(lx,ly))
}