add_labels | R Documentation |
Not applicable for shapes of type 'refline'
.
add_labels( pj, text, size = 10, font = "sans", style = "plain", tc = "black", ta = 0.5, hj = 0.5, vj = 0.5, parse = FALSE, a = 0, fc = "white", fa = 0.5, lc = "black", la = 0.5, lt = "-", lw = 1, au = "r", dx = 0, dy = 0, shape = ".", name = "." )
pj |
an object of class |
text |
character vector containing labels to add to x-y locations of
shapes. Special values are |
size |
positive numeric vector giving text size in points. |
font |
character vector giving label fonts. Valid values are
|
style |
character vector giving text style. |
tc |
character vector giving valid text color specifications for labels. |
ta |
proportion vector (i.e., between 0 and 1 inclusive) indicating the alpha opacity of the text color (0 = fully transparent, 0.5 = translucent, 1 = fully opaque). |
hj, vj |
numeric proportion vectors (i.e., all values are between 0 and 1
inclusive) giving the horizontal justification and vertical justification,
respectively. |
parse |
logical vector indicating whether to parse the labels (e.g., to print labels with Greek letters or mathematical expressions). |
a |
numeric vector giving angle of text rotation. |
fc |
|
fa |
|
lc |
|
la |
|
lt |
|
lw |
|
au |
|
dx |
numeric vector giving horizontal offset from |
dy |
numeric vector giving vertical offset from |
shape |
character scalar indicating the type of shape to which the look will be applied. |
pj
with the addition of the label look applied to the
specified shape.
Labels can be validly
described using patterns of argument properties as follows, where
base
indicates that the argument set (text, tc, ta, font,
size, style, hj, vj, a, parse, au, dx, dy)
have all been supplied,
line
indicates that the argument set (lc, la, lt)
have all
been supplied. and fill
indicates that the argument set (fc,
fa)
have both been supplied.
base
The label text
is printed without any
enclosure
.
base + line
The label in text
is printed in an
outlined enclosure
.
base + fill
The label in text
is printed in a filled
enclosure
.
base + line + fill
The label in text
is printed in
an outlined and filled enclosure
.
The arguments text
, tc
, ta
,
font
, size
, style
, hj
, vj
, a
,
parse
, fc
, fa
, lc
, la
, lt
,
lw
, au
, dx
, and/or dy
are recycled with the
number of x-y
pairs used to draw the shape to which the label look
is applied
Other add_look:
add_ci()
,
add_ends()
,
add_fills()
,
add_glyphs()
,
add_lines()
,
add_marks()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.