spatstat.options(...) reset.spatstat.options()name=value pairs.
    See below for the parameter names.
  spatstat.options but are intended for
  software development or testing purposes.
  FALSE.
    closepairs.
      Initialised to TRUE.
    crossing.psp.
      Initialised to TRUE.
    crosspairs.
      Initialised to TRUE.
    densityC=TRUE) or interpreted R code (densityC=FALSE)
      to evaluate density.ppp(X, at="points").
      Initialised to TRUE.
    'off', 'on' or
      'test' determining whether to use accelerated C code
      to evaluate the conditional intensity of a Gibbs model.
      Initialised to 'on'.
    FALSE.
    selfcrossing.psp.
      Initialised to TRUE.
    TRUE.
    spatstat.options
  allows the user to examine and reset the values
  of global parameters which control actions in the
  spatstat package.
  It is analogous to the system function options.  The function reset.spatstat.options resets all the
  global parameters in spatstat to their original,
  default values.
The global parameters of interest to the user are:
owin and as.owin should
      apply very strict checks on the validity of polygon data. 
      These strict checks are no longer necessary, and the default is
      checkpolygons=FALSE.
      See also fixpolygons below.
    
psp and as.psp should check
      the validity of line segment data (in particular, checking that
      the endpoints of the line segments are inside the specified
      window). It is advisable to leave this flag set to TRUE. 
    
Gcom, Gres
      Kcom, Kres, 
      psstA, 
      psstG, 
      psst.
      The flag indicates whether to compute intensity estimates
      on an eroded window (eroded.intensity=TRUE)
      or on the original data window
      (eroded.intensity=FALSE, the default). 
    
rmh (see rmhcontrol).
      Initialised to 2.
    
polynom
      in a model formula should be expanded, so that
      polynom(x,2) is replaced by x + I(x^2) and so on.
      Initialised to TRUE.
    
rpoispp
      when the argument lambda is a pixel image.
      Initialised to TRUE.
      Should be set to FALSE if needed to guarantee repeatability
      of results computed using earlier versions of spatstat.
    
rthin when the argument
      P is a single number.
      Initialised to TRUE.
      Should be set to FALSE if needed to guarantee repeatability
      of results computed using earlier versions of spatstat.
    
lgcp.estK or Kmodel.
      The slow algorithm uses accurate numerical integration; the
      fast algorithm uses Simpson's Rule for numerical integration,
      and is about two orders of magnitude faster.
      Initialised to FALSE. 
    
owin and as.owin should
      repair errors in polygon data. For example,
      self-intersecting polygons and overlapping polygons will
      be repaired. The default is fixpolygons=TRUE.
    
n for which runif(n) will
      not generate an error (possible errors include failure to allocate
      sufficient memory, and integer overflow of n).
      An attempt to generate more than this number of random points
      triggers a warning from runifpoint and other
      functions. Defaults to 1e6.
    
plot.im. When called with one integer argument
      n, this function should return a character vector of length
      n specifying n different colours.
    
Kcom and Kres
      removes or retains the contributions to the function
      from pairs of points that are identical. If these are
      retained then the function has a jump at $r=0$.
      Initialised to TRUE.
    
edge.Trans or edge.Ripley
      and used in Kest and its relatives.
    
ppm and predict.ppm
      (for example) to decide when to
      split a large calculation into blocks.
      Defaults to 2^24=16777216. 
    
monochrome=TRUE) or
      in colour (monochrome=FALSE, the default).
    
bw.relrisk and similar
      functions.
    
default.dummy.
      Either an integer or a pair of integers
      giving the minimum number of dummy points in the x and y
      directions respectively. 
    
areaLoss and areaGain
      when exact calculation is not available.
      A single integer.
    
x and y
      directions respectively.
    
F3est.
      Initialised to 4 megavoxels: nvoxel = 2^22 = 4194304.
    
image
      when displaying a binary image mask (in plot.owin
      or plot.ppp).
      Typically used to reset the colours of foreground and background.
    
contour.im.
    
plot.fv and its relatives.
    
persp
      when displaying a real-valued image, such as the fitted surfaces
      in plot.ppm.
    
plot.ppp.
    
plot.pp3.
    
print.ppm
      to decide whether to calculate and print standard errors
      of the estimated coefficients of the model.
      One of the strings "always", "never" or
      "poisson" (the latter indicating that standard errors
      will be calculated only for Poisson models). The default is
      "poisson" because the calculation for non-Poisson models
      can take a long time.
    
progressreport. Either
      "tty", "tk" or "txtbar".
      For explanation of these options, see progressreport.
    
TRUE, the algorithm of
      project.ppm
      will be accelerated using a shorcut.
      Initialised to FALSE.
    
psstA.
      The area of a disc is approximated by counting points on
      an $n * n$ grid.
      Initialised to 32.
    
psstA will be evaluated
      (in the default case where argument r is absent).
      Initialised to 30.
    
psstG 
      removes or retains the contributions to the function
      from pairs of points that are identical. If these are
      retained then the function has a jump at $r=0$.
      Initialised to TRUE.
    
p, q
      and nrep in the Metropolis-Hastings simulation
      algorithm. These override the defaults
      in rmhcontrol.default.
    
rmh.default
      which makes the results scalable (invariant to change of units)
      should be used.  In order to recover former behaviour (so that
      previous results can be reproduced) set this option equal to
      FALSE.  See the Warning section in the help for
      rmh() for more detail.
    
| 0 | 
| Full output | 
| 1 | 
| Avoid wasteful output | 
| 2 | 
| Remove space between paragraphs | 
| 3 | 
| Suppress extras such as standard errors | 
terse is initialised to 0.
    
TRUE.
      Currently this only affects plot.ppp. 
    
unitname. This text is seen in
      the text output of functions like print.ppp and
      in the graphics generated by plot.fv.
      The value should be one of the character strings '(', '[',
      '{' or ''. The default is '('.
    
If no arguments are given, the current values of all parameters are returned, in a list.
  If one parameter name is given, the current value of this
  parameter is returned (not in a list, just the value).
  
  If several parameter names are given,
  the current values of these parameters are returned, in a list.
  
  If name=value pairs are given, the named parameters
  are reset to the given values, and the previous values of
  these parameters are returned, in a list.
options
  # save current values
  oldopt <- spatstat.options()
  spatstat.options("npixel")
  spatstat.options(npixel=150)
  spatstat.options(npixel=c(100,200))
  spatstat.options(par.binary=list(col=grey(c(0.5,1))))
  spatstat.options(par.persp=list(theta=-30,phi=40,d=4))
  # see help(persp.default) for other options
  # revert
  spatstat.options(oldopt)
Run the code above in your browser using DataLab