markvario(X, correction = c("isotropic", "Ripley", "translate"),
r = NULL, method = "density", ..., normalise=FALSE)"ppp" or something acceptable to
    as.ppp. It must have marks which are numeric."isotropic", "Ripley" or "translate".
    It specifies the edge correction(s) to be applied."density", 
    "loess",
    "sm" and "smrep".TRUE, normalise the variogram by
    dividing it by the estimated mark variance."fv" (see fv.object).
  
  Essentially a data frame containing numeric columns"iso" and/or "trans",
  according to the selected edge corrections. These columns contain
  estimates of the function $\gamma(r)$
  obtained by the edge corrections named.The mark variogram of a marked point process is analogous, but not equivalent, to the variogram of a random field in geostatistics. See Waelder and Stoyan (1996).
Waelder, O. and Stoyan, D. (1996) On variograms in point process statistics. Biometrical Journal 38 (1996) 895-905.
markcorr for numeric marks.  Mark connection function markconnect and 
  multitype K-functions Kcross, Kdot
  for factor-valued marks.
# Longleaf Pine data
    # marks represent tree diameter
    data(longleaf)
    # Subset of this large pattern
    swcorner <- owin(c(0,100),c(0,100))
    sub <- longleaf[ , swcorner]
    # mark correlation function
    mv <- markvario(sub)
    plot(mv)Run the code above in your browser using DataLab