Learn R Programming

adehabitatMA (version 0.3.17)

mimage: Displaying Multi-layer Raster Maps

Description

This function allows to display the whole content of an object of class SpatialPixelsDataFrame

Usage

mimage(x, var = names(slot(x, "data")), col = gray((240:1)/256), mfrow = NULL)

Arguments

x

an object of class SpatialPixelsDataFrame

var

The names or index of the variables to be plotted

col

a vector of colors to be used for plotting

mfrow

The parameter mfrow for the resulting graph (see help(par)

Author

Clement Calenge clement.calenge@ofb.gouv.fr

See Also

par for information about mfrow, and SpatialPixelsDataFrame-class for additionnal information on objects of class SpatialPixelsDataFrame.

Examples

Run this code

data(lynxjura)

lynxjura$map

mimage(lynxjura$map)

mimage(lynxjura$map, c("forets", "routes"),
       col=grey(seq(0,1, length=100)))

Run the code above in your browser using DataLab