panel_decor {ursa} | R Documentation |
Add auxiliary elements to the plotting panel.
Description
panel_decor
adds over plot sequentially the followed elements: coastline, gridline, scalebar. Unlike panel_decor
, function layout.grid
does not add scalebar.
Usage
panel_decor(...)
Arguments
... |
Passed to sequence of plotting functions:
|
Details
The sequence of elements is constant. To change order, use direct calling of panel_graticule
, panel_coastline
, panel_scalebar
in any sequence.
Sometimes, for rasters with NA
values the followed sequence may be used:
panel_coastline(col="transparent",fill="grey80") panel_raster(a) panel_coastline(col="grey40")
Value
panel_decor
returns NULL
value.
layout.grid
returns NULL
value.
Author(s)
Nikita Platonov platonov@sebin.ru
Examples
session_grid(NULL)
a <- ursa_dummy(nband=1,min=0,max=100)
a[a<30] <- NA
compose_open()
panel_new()
ct <- panel_raster(a)
panel_decor(graticule.col="green4",graticule.lwd=2,scalebar.col="brown")
compose_legend(ct)
compose_close()