addColorStrips: Add list of colored strips

Description Usage Arguments Value See Also

View source: R/shapes.R

Description

Add list of colored strips

Usage

1
addColorStrips(n_strips, color_map, orient, pos_function, size, thickness = 20)

Arguments

n_strips

Number of strips to be added

color_map

A list of colors corresponding to the number of strips

orient

Orientation of the legend. Can be "bottom" (default, horizontal with labels below), "top" (horizontal with labels above), "left" (vertical with labels on the left) and "right" (vertical with labels on the right).

pos_function

A function to convert from index number to pixels

size

The length of the list in pixels

thickness

The height or width of the list in pixels

Value

A list of SVG rect shapes.

See Also

numericLegend()


rhenkin/vfinputs documentation built on Oct. 23, 2020, 1:30 a.m.