new_region | R Documentation |
Locate a new plotting region within the background region, set its units relative to the background region, set its min and max x and y values, put a pad between the edges of the region and available area for plotting, and apply fill and line looks.
new_region( pj, xmax, xmin, ymax, ymin, le = NA, be = NA, re = NA, te = NA, w = NA, h = NA, fc = "white", fa = 0.5, lc = "black", la = 0.5, lt = "-", lw = 1, name = "." )
pj |
an object of class 'pj'. |
xmax |
a numeric scalar giving the maximum x-value for plotting objects in the region. |
xmin |
a numeric scalar giving the minimum x-value for plotting objects in the region. |
ymax |
a numeric scalar giving the maximum y-value for plotting objects in the region. |
ymin |
a numeric scalar giving the minimum y-value for plotting objects in the region. |
le |
|
be |
|
re |
|
te |
|
w |
|
h |
|
fc |
|
fa |
|
lc |
|
la |
|
lt |
|
lw |
|
name |
character scalar name for the new region. The special value
|
pad |
proportion vector of length 1, 2, or 4 (see the edge padding section) with value no larger than 0.25. |
pj
with the addition of the specified region.
The lt
argument can take on the following
values to indicate the following line types:
VALUE | LINE TYPE |
'-' | solid |
':' | dotted |
'=' | dashed |
':=' | dot-dashed |
'L=' | long-dashed |
'2=' | double-width dashed |
Edge padding can be achieved in three ways using the
pad
argument as shown in the following table:
edge | pad = p | pad = c(px, py)
| pad = c(pl, pr, pb, pt)
|
left | p \* min(w, h) | px \* w | pl \* w
|
right | p \* min(w, h) | px \* w | pr \* w
|
bottom | p \* min(w, h) | py \* h | pb \* h
|
top | p \* min(w, h) | py \* h | pt \* h
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.