| spherstat-package | R Documentation |
A package for analysing spatial point pattern data on the sphere, or observed in a region of the sphere.
This package allows a user to analyse point pattern data on a sphere, or a subset of a sphere. Subsets of the sphere that are currently supported are the spherical cap, band, wedge, and polygon. Currently this package supports:
calculations in spherical geometry and trigonometry;
calculation of pairwise and nearest neighbour distances between points;
calculation of distance from point to boundary of window;
estimation of summary functions including the spherical analogues of Ripley's K function, the nearest neighbour distance distribution function G, the empty space function F and the J function;
simulation of Poisson, Matern inhibition, Strauss, Hard-core and Neyman-Scott point processes;
model-fitting for Poisson point processes and Neyman-Scott processes.
The preferred coordinate system for data given to functions in this
package is the spherical coordinate system. In other words, the
coordinate of a point should be given as (theta, phi), where
theta is the colatitude, between 0 and pi,
and phi is longitude and is between 0 and 2 * pi.
The north pole has colatitude 0 and arbitrary
longitude (although for most cases, use phi=0), and longitudes are
measured in anticlockwise direction. Some functions allow data to be
given using Cartesian coordinates (x,y,z).
Many functions in these package are the analogues for point processes on the sphere of functions available in the package spatstat for point processes in R^2 or R^3. Elements of the code and help pages in this package have been taken with permission from corresponding material in spatstat.
Tom Lawrence <email: tjlawrence@bigpond.com> Adrian Baddeley
sph <- sphwin(type="sphere") sph.pp <- rpoispp.sphwin(win=sph, lambda=10) sph.Gest <- Gsphere(X=sph.pp, win=sph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.