default.symbolmap.ppp {spatstat.geom}R Documentation

Default Symbol Map for Point Pattern

Description

Determines a symbol map for plotting the spatial point pattern x.

Usage

## S3 method for class 'ppp'
default.symbolmap(x, ...,
      chars = NULL, cols = NULL, 
      fixsize = FALSE,
      maxsize = NULL, meansize = NULL, markscale = NULL,
      minsize = NULL, zerosize = NULL, marktransform = NULL)

Arguments

x

A spatial point pattern (object of class "ppp").

...

extra graphical parameters, passed to symbolmap (and ultimately to points and/or symbols).

chars

the plotting character(s) used to plot points. Either a single character, an integer, or a vector of single characters or integers. Ignored if symap is given.

cols

the colour(s) used to plot points. Either an integer index from 1 to 8 (indexing the standard colour palette), a character string giving the name of a colour, or a string giving the hexadecimal representation of a colour, or a vector of such integers or strings. See the section on Colour Specification in the help for par.

fixsize

Logical value specifying whether the symbols should all have the same physical size on the plot. Default is FALSE.

maxsize

Maximum physical size of the circles/squares plotted when x is a marked point pattern with numerical marks. Incompatible with meansize and markscale.

meansize

Average physical size of the circles/squares plotted when x is a marked point pattern with numerical marks. Incompatible with maxsize and markscale.

markscale

physical scale factor determining the sizes of the circles/squares plotted when x is a marked point pattern with numerical marks. Mark value will be multiplied by markscale to determine physical size. Incompatible with maxsize and meansize.

minsize

Minimum physical size of the circles/squares plotted when x is a marked point pattern with numerical marks. Incompatible with zerosize.

zerosize

Physical size of the circle/square representing a mark value of zero, when x is a marked point pattern with numerical marks. Incompatible with minsize. Defaults to zero.

marktransform

Experimental. A function that should be applied to the mark values before the symbol mapping is applied.

Details

This algorithm determines a symbol map that can be used to represent the points of x graphically. It serves as the default symbol map for the plot method plot.ppp.

Users can modify the behaviour of plot.ppp by saving the symbol map produced by default.symbolmap, modifying the symbol map using update.symbolmap or other tools, and passing the modified symbol map to plot.ppp as the argument symap.

The default representation depends on the marks of the points, as follows.

unmarked point pattern:

If the point pattern does not have marks, then every point will be represented by the same plot symbol.

multitype point pattern:

If marks(x) is a factor, then each level of the factor is represented by a different plot character.

continuous marks:

If marks(x) is a numeric vector, each point is represented by a circle with diameter proportional to the mark (if the value is positive) or a square with side length proportional to the absolute value of the mark (if the value is negative).

other kinds of marks:

If marks(x) is neither numeric nor a factor, then each possible mark will be represented by a different plotting character. The default is to represent the ith smallest mark value by points(..., pch=i).

The following arguments can be used to modify how the points are plotted:

Additionally the user can specify any of the graphics parameters recognised by symbolmap, including shape, size, pch, cex, cols, col, fg, bg, lwd, lty, etch, direction,headlength,headangle,arrowtype.

Value

A symbol map (object of class "symbolmap") or a list of symbol maps, one for each column of marks.

Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au

See Also

plot.ppp

default.symbolmap

symbolmap

Examples

  default.symbolmap(longleaf)
  default.symbolmap(lansing)

[Package spatstat.geom version 3.3-2 Index]