| as.colourmap {spatstat.geom} | R Documentation |
Convert some other kind of data to a colour map.
as.colourmap(x, ...)
## S3 method for class 'colourmap'
as.colourmap(x, ...)
## S3 method for class 'symbolmap'
as.colourmap(x, ...)
x |
Data to be converted to a colour map.
An object of class |
... |
Other arguments passed to methods. |
If x contains colour map information, it will be extracted
and returned as a colour map object. Otherwise, NULL will be returned.
A colour map (object of class "colourmap") or NULL.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.
m <- pHcolourmap(c(3,8))
g <- symbolmap(pch=21, bg=m, size=function(x){ 1.1 * x }, range=c(3,8))
opa <- par(mfrow=c(1,2))
plot(g, vertical=TRUE)
plot(as.colourmap(g), vertical=TRUE)
par(opa)