add_fills: Add fill looks to a shape.

View source: R/add_look.R

add_fillsR Documentation

Add fill looks to a shape.

Description

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.

Usage

add_fills(pj, fc = "white", fa = 0.5, shape = ".", name = ".")

Arguments

pj

an object of class 'pj'.

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.

Value

pj with the addition of the fill look applied to the specified shape.

Argument recycling

The arguments fc and fa are recycled with the number of polygons contained by the shape to which the fill look is applied.

See Also

Other add_look: add_ci(), add_ends(), add_glyphs(), add_labels(), add_lines(), add_marks()


j-martineau/pj documentation built on March 19, 2022, 5:32 a.m.