add_fills | R Documentation |
Not applicable for shapes of type 'refline'
or
'segment'
. Adding a fill look to a point shape will effectively turn
the point shape into a free polygon.
add_fills(pj, fc = "white", fa = 0.5, shape = ".", name = ".")
pj |
an object of class |
fc |
character vector containing valid color representations. Length must be consistent with the shape a fill look is being added to. |
fa |
proportion vector (i.e., between 0 and 1 inclusive) indicating the alpha opacity of the fill color (0 = fully transparent, 0.5 = translucent, 1 = fully opaque). |
shape |
character scalar indicating the type of shape to which the look will be applied. |
pj
with the addition of the fill look applied to the specified
shape.
The arguments fc
and fa
are
recycled with the number of polygons contained by the shape to which the
fill look is applied.
Other add_look:
add_ci()
,
add_ends()
,
add_glyphs()
,
add_labels()
,
add_lines()
,
add_marks()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.