panel_new {ursa} | R Documentation |
Start plotting on the new image panel
Description
panel_new
finishes plotting on previuos image panel and starts plotting on next image panel.
Usage
panel_new(...)
# non-public
.panel_new(col = "chessboard", density = NA, angle = NA, lwd = 1, lty = 1,
asp = NA, mar = rep(0, 4), verbose = FALSE)
Arguments
... |
Set of arguments, which are recognized via their names (using regular expressions) and classes. Passed to non-public
| |||||||||||||||||||||||||||
col |
Character. Color code/name for panel filling/shadowing. Default is | |||||||||||||||||||||||||||
density |
Numeric. The density of shading lines for fill/shadowing. If | |||||||||||||||||||||||||||
angle |
Numeric. The slope of shading lines, given as an angle in degrees (counter-clockwise). If | |||||||||||||||||||||||||||
lwd |
Positive numeric. Width of coastline. Default is | |||||||||||||||||||||||||||
lty |
Character or positive integer. Type (pattern) of coastline. Default is | |||||||||||||||||||||||||||
asp |
Positive numeric. The y/x aspect ration. Default is | |||||||||||||||||||||||||||
mar |
Positive numeric of length 4. Plot margins. Default is | |||||||||||||||||||||||||||
verbose |
Logical. Value |
Details
Prefix blank
is introduced for manipulations with panel_new
inside of high-level functions (e.g., display
). Prefix skipping is the subject for confict with functions, which use the same name of arguments.
It is required to call panel_new
for every image panel. First calling starts plotting on the first panel. Second and next callings change image panels.
The panel sequence is set in function compose_design
, which is called directly or indirectly from compose_open
, and keeps in the options (access via getOption("ursaPngLayout")$layout
).
Image background is formed via consecutive call of functions plot(...,type="n")
, and rect(...)
.
Value
Function returns NULL
value.
Author(s)
Nikita Platonov platonov@sevin.ru
Examples
session_grid(NULL)
# example no.1 -- direct use
compose_open(layout=c(1,2),legend=NULL)
panel_new()
panel_annotation(label="Default + Empty")
panel_new(col="#0000FF3F",density=15,angle=45,lwd=3)
panel_decor()
panel_annotation(label="Settings + Grid")
compose_close()
# example no.2 -- indirect use
a <- pixelsize()
a <- a[a>560]
display(a,blank.col="#0000FF3F",blank.density=15,blank.angle=45,blank.lwd=3
,coast.fill="#007F005F",coast.density=20,coast.angle=c(-30,60))