compose_plot: Plot layout of images and color bars.

compose_plotR Documentation

Plot layout of images and color bars.

Description

compose_plot plots images (raster brick or raster stack) and corresponding color bars according to given rectangular layout.

Usage

compose_plot(...)

Arguments

...

Set of arguments, which are passed to compose_panel and compose_legend

Details

Function merges to functions. The first one plots image layout and returns list of color tables. The second one plots legend (colorbars) based on returned color tables. Simplified description is:

ct <- compose_panel(...)
compose_legend(ct,...)

These two functions are separated to allow use additional plotting on image panel after primary plot of raster and decorations before panel change or legend plot.

Value

This function returns NULL value.

Author(s)

Nikita Platonov platonov@sevin.ru

See Also

compose_panel
compose_legend

Examples

session_grid(NULL)
a <- ursa_dummy(nband=6,min=0,max=255,mul=1/4)
if (example1 <- TRUE) {
   b1 <- ursa_brick(a)
  # b1 <- colorize(b1,stretch="positive",ramp=FALSE)
   compose_open(b1)
   compose_plot(b1,grid=FALSE,coast=FALSE,scale=FALSE,trim=1
               ,stretch="positive",ramp=!FALSE)
   compose_close()
}
if (example2 <- TRUE) {
   b2 <- ursa_stack(a)
   compose_open(b2)
   compose_plot(b2,grid=FALSE,coast=FALSE,labels=5,trim=2,las=0)
   compose_close()
}

ursa documentation built on March 18, 2022, 6:23 p.m.