addColorStrips {vfinputs}R Documentation

Add list of colored strips

Description

Add list of colored strips

Usage

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()


[Package vfinputs version 0.1.0 Index]