add_lines | R Documentation |
Add a lines look to a shape.
add_lines( pj, lc = "black", la = 0.5, lt = "-", lw = 1, shape = ".", name = "." )
pj |
an object of class |
lc |
character vector containing valid color representations. Length must be consistent with the shape a line look is being added to. |
la |
proportion vector (i.e., between 0 and 1 inclusive) indicating the alpha opacity of the line color (0 = fully transparent, 0.5 = translucent, 1 = fully opaque). |
lt |
character vector indicating line type, where |
lw |
positive numeric vector indicating proportional line width relative
to the default (i.e., |
shape |
character scalar indicating the type of shape to which the look will be applied. |
pj
with the addition of the line look applied to the
specified shape.
For shapes that are polygons, the arguments
lc
, la
, lt
, and lw
are recycled with the number
of distinct polygons described by the shape to which the look is to be
applied. For point shapes, these arguments are recycled with the number of
defined points. For refline and segment shapes, the arguments must be
recyclable with the number of lines/segments defined by the shape.
Other add_look:
add_ci()
,
add_ends()
,
add_fills()
,
add_glyphs()
,
add_labels()
,
add_marks()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.