Learn R Programming

ursa (version 3.11.1)

plot: Simple display of raster images

Description

Function image for ursaRaster object calls generic function image.
Function plot for ursaRaster object calls function filled.contour.
Color tables are supported.

Usage

# S3 method for ursaRaster
plot(x, ...)

# S3 method for ursaRaster image(x, ...)

Value

Returned value from image or filled.contour (both functions are in the package graphics)

Arguments

x

Object of class ursaRaster

...

Other parameters. Are passed to or filled.contour or to generic function image.

Author

Nikita Platonov platonov@sevin.ru

Details

Usage of both these functions is justified for low-level control of plotting. It is recommended to use high-level function display. It is flexible and power instrument for raster images visualization.

Function as.list for ursaRaster object transforms single band of raster image to a suitable object for plotting via function image from package graphics

See Also

display

Examples

Run this code
session_grid(NULL)
a <- pixelsize()
plot(a,asp=1)
image(a,asp=1)
b <- colorize(a,ncolor=15)
plot(b,asp=1)
image(b,asp=1)

Run the code above in your browser using DataLab