| panel_new | R Documentation | 
panel_new finishes plotting on previuos image panel and starts plotting on next image panel.
panel_new(...)
# non-public
.panel_new(col = "chessboard", alpha = NA, density = NA, angle = NA,
           lwd = 1, lty = 1, asp = NA, mar = rep(0, 4), grid = NULL, verbose = FALSE)
... | 
 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   | |||||||||||||||||||||||||||||||||
alpha | 
 Numeric,   | |||||||||||||||||||||||||||||||||
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   | |||||||||||||||||||||||||||||||||
grid | 
 Object of class   | |||||||||||||||||||||||||||||||||
verbose | 
 Logical. Value   | 
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(...).
Function returns NULL value.
Nikita Platonov platonov@sevin.ru
session_grid(NULL)
# example no.1 -- direct use
compose_open(layout=c(1,3),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")
panel_new("#FFFF0040",grid=regrid(expand=0.5))
panel_decor()
panel_annotation(label="Another spatial extent")
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.