plotreg {spatclus}R Documentation

Regression plot

Description

Plots the ordered distance serie and the regression function.

Usage

plotreg(nomlst, m)

Arguments

nomlst A list corresponding to the "clus" function's return value.
m The number of breaks of the model to be plotted.

Value

A R-graphic window containing the plot.

Note

To plot the regression function with the number of breaks that maximizes the WD max F-statistic, one can use "RES$$$stat$$$kmax" as value for the parameter "m" in wich RES is the list returned by the "clus" function.

Author(s)

Christophe Dematte{"i} demattei@iurc.montp.inserm.fr

Examples

  library(spatstat)

  data(chemist)
  data(grille)
  data(irislist)

  # location and detection of spatial clusters
  # adjusted for an inhomogeneous population density
  RES <- clus(chemist,grille,limx=c(-6,8),limy=c(-7,7))

  # plot of the regression
  plotreg(RES,RES$stat$kmax)

[Package spatclus version 1.0-3 Index]