List of Two-Dimensional Spatial Objects
Make a list of two-dimensional spatial objects.
solist(..., check=TRUE, promote=TRUE, demote=FALSE)
- Any number of objects, each representing a two-dimensional spatial dataset.
- Logical value. If
TRUE, check that each of the objects is a 2D spatial object.
- Logical value. If
TRUE, test whether all objects belong to the same class, and if so, promote the list of objects to the appropriate class of list.
- Logical value determining what should happen if any of the
objects is not a 2D spatial object: if
demote=FALSE(the default), a fatal error occurs; if
demote=TRUE, a list of class
This command creates an object of class
(spatial object list)
which represents a list of two-dimensional spatial datasets.
The datasets do not necessarily belong to the same class.
Typically the intention is that the datasets in the list
should be treated in the same way, for example, they should
be plotted side-by-side. The
and many other functions for this class.
"solist". For example, when
a point pattern is split into several point patterns by
split.ppp, or an image is split into several
split.im, the result is of
check=TRUE then the code will check whether all
... belong to the classes
of two-dimensional spatial objects defined in the
for efficiency, but only if you are sure that all the objects are valid.
If some of the objects in
not two-dimensional spatial objects,
the action taken depends on the argument
demote=TRUE, the result will belong to the more general
"anylist" instead of
demote=FALSE (the default), an error occurs.
promote=TRUE then the code will check whether all
... belong to the same class.
If they are all point patterns (class
the result will also belong to the class
If they are all pixel images (class
"im"), the result
will also belong to the class
as.solist to convert a list to a
- A list, usually belonging to the class
solist(cells, density(cells)) solist(cells, japanesepines, redwood)