spatstat.options {spatstat} | R Documentation |
Allows the user to examine and reset the values of global parameters which control actions in the spatstat package.
spatstat.options(...)
... |
Either empty,
or a succession of parameter names in quotes,
or a succession of name=value pairs.
See below for the parameter names.
|
This function 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 global parameters are:
as.mask
. Either an integer or a pair of integers
giving the number of pixels in the x
and y
directions.
edge.Trans
or edge.Ripley
and used in Kest
and its relatives.
image
when displaying a binary image mask (in plot.owin
or plot.ppp
).
Typically used to reset the colours of foreground and background.
persp
when displaying a real-valued image, such as the fitted surfaces
in plot.ppm
.
plot.ppp
.
contour.im
.
default.dummy
.
Either an integer or a pair of integers
giving the number of dummy points in the x
and y
directions.
plot.im
. When called with one integer argument
n
, this function should return a character vector of length
n
specifying n
different colours.
progressreport
. Either
"tty"
or "txtbar"
.
owin
and as.owin
should check
the validity of polygon data. It is advisable to leave this
set to TRUE
. If you set checkpolygons=FALSE
,
no checking will be performed, making it possible to create
window objects whose topology is garbled. This can be useful
for inspecting spatial data that contain errors,
for example, when converting data from shapefiles.
However, other functions in spatstat may return
incorrect answers on these data.
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
.
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.
Either a list of parameters and their values, or a single value. See Details.
Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner r.turner@auckland.ac.nz
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