Ksector(X, begin = 0, end = 360, ..., units = c("degrees", "radians"),  r = NULL, breaks = NULL, correction = c("border", "isotropic", "Ripley", "translate"), domain=NULL, ratio = FALSE, verbose=TRUE)"ppp", or data
    in any format acceptable to as.ppp().
  units="degrees", the default) or radians
    (if units="radians") anti-clockwise from the positive $x$-axis.
  begin and end are expressed.
  "none", "border", "bord.modif",
    "isotropic", "Ripley", "translate",
    "translation", "none", "good" or "best".
    It specifies the edge correction(s) to be applied.
    Alternatively correction="all" selects all options.
  domain.
  TRUE, the numerator and denominator of
    each edge-corrected estimate will also be saved,
    for use in analysing replicated point patterns.
  "fv" containing the estimated
  function.
Kest) in which, instead of counting all
  pairs of points within a specified distance $r$, we
  count only the pairs $x[i], x[j]$
  for which the vector $x[j] - x[i]$
  falls in a particular range of angles.  This can be used to evaluate evidence for anisotropy
  in the point pattern X.
Kest
 K <- Ksector(swedishpines, 0, 90)
 plot(K)
Run the code above in your browser using DataLab