Learn R Programming

ursa (version 3.11.1)

display_brick: Plot multi-band homogenous raster image in the PNG format.

Description

Raster image is forced to be interpreted as homogenuous (having the same units). It implies creating multi-panel layout with multiple colorbars.

Usage

display_brick(obj, ...)
display_homo(obj, ...)

Value

Function returns NULL value.

Arguments

obj

Object of class ursaRaster or list of ursaRaster objects.

...

Passed to hierarchy of plotting functions:

  • compose_open

    • compose_design

  • compose_plot

    • panel_new

    • panel_raster

    • panel_decor

      • panel_graticule

      • panel_coastline

      • panel_scalebar

      • panel_annotation

    • compose_legend

  • compose_close

Author

Nikita Platonov platonov@sevin.ru

Details

If argument obj is list of ursaRaster objects (or object of class ursaStack) then obj is coerced to class ursaRaster ('stack' is coerced to 'brick').

display_homo is a synonym to display_brick. It is introduced to emphasize the plotting of homogenous object.

See Also

display, display_stack, display_rgb

Examples

Run this code
session_grid(NULL)
a <- ursa_dummy(nband=3,min=0,max=250)
a[2] <- -a[1]
a[3] <- sqrt(a[1])
a2 <- ursa_stack(a) 
print(a2)
display(a2) # likely 'display_stack' will be called
display_brick(a2,stretch="eq",labels=c(-150,-100,0,10,12,20,100,150))

Run the code above in your browser using DataLab