Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

layerplotargs

Extract or Replace the Plot Arguments of a Layered Object


Description

Extracts or replaces the plot arguments of a layered object.

Usage

layerplotargs(L)

layerplotargs(L) <- value

Arguments

L

An object of class "layered" created by the function layered.

value

Replacement value. A list, with the same length as L, whose elements are lists of plot arguments.

Details

These commands extract or replace the plotargs in a layered object. See layered.

The replacement value should normally have the same length as the current value. However, it can also be a list with one element which is a list of parameters. This will be replicated to the required length.

For the assignment function layerplotargs<-, the argument L can be any spatial object; it will be converted to a layered object with a single layer.

Value

layerplotargs returns a list of lists of plot arguments.

"layerplotargs<-" returns the updated object of class "layered".

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

W <- square(2)
   L <- layered(W=W, X=cells)
   ## The following are equivalent
   layerplotargs(L) <- list(list(), list(pch=16))
   layerplotargs(L)[[2]] <- list(pch=16)
   layerplotargs(L)$X <- list(pch=16)

   ## The following are equivalent
   layerplotargs(L) <- list(list(cex=2), list(cex=2))
   layerplotargs(L) <- list(list(cex=2))

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.