add_marks | R Documentation |
A mark is a polygon-based marker for a given x-y location. Not
applicable for shapes of type 'refline'
.
add_marks( pj, mark = "d", size = 1, fc = "white", fa = 0.5, lc = "black", la = 0.5, lw = 1, et = NA, ec = NA, ea = NA, shape = ".", name = "." )
pj |
an object of class |
mark |
character vector of symbols to mark x-y coordinates. Each value
must be a single character, where |
size |
positive numeric vector indicating symbol size relative to the default (thus 1 indicates default sized, 1/2 indicates half sized, and 2 indicates double sized). |
et |
character vector indicating the type of enclosure with which to
surround symbols in |
ec |
|
ea |
|
shape |
character scalar indicating the type of shape to which the look will be applied. |
pj
with the addition of the mark look applied to the
specified shape.
Marks can be validly
described using the patterns of argument properties as follows, where
base
indicates that the argument set {mark, size}
has been
supplied, fill
indicates that the argument set {fc, fa}
has
been supplied, line
inidicates that the argument set {lc, la,
lt, lw}
have been supplied and enclosure
indicates that the
argument set {et, ec, ea}
has been supplied.
base + line
Outlined mark.
base + fill
Solid mark.
base + line + fill
Outlined and filled mark
.
base + line + enclosure
Outlined mark in an enclosure
.
base + fill + enclosure
Solid mark in an enclosure
.
base + line + fill + enclosure
Outlined and filled mark in an enclosure
.
The arguments mark
, size
,
lc
, la
, lw
, fc
, fa
, et
,
ec
, and/or ea
are recycled with the number of x-y pairs used
to draw the shape to which the mark look is applied.
Other add_look:
add_ci()
,
add_ends()
,
add_fills()
,
add_glyphs()
,
add_labels()
,
add_lines()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.