- map
a mapdeck map object
- data
data to be used in the layer. All coordinates are expected to be
EPSG:4326 (WGS 84) coordinate system
- layer_id
single value specifying an id for the layer. Use this value to
distinguish between shape layers of the same type. Layers with the same id are likely
to conflict and not plot correctly
- origin
vector of longitude and latitude columns, and optionally an elevation column,
or an sfc
column
- destination
vector of longitude and latitude columns, and optionally an elevatino column,
or an sfc
column
- id
an id value in data
to identify layers when interacting in Shiny apps.
- stroke_from
column of data
or hex colour to use as the staring stroke colour.
IIf using a hex colour, use either a single value, or a column of hex colours on data
- stroke_from_opacity
Either a string specifying the
column of data
containing the stroke opacity of each shape, or a value
between 1 and 255 to be applied to all the shapes. If a hex-string is used as the
colour, this argument is ignored and you should include the alpha on the hex string
- stroke_to
column of data
or hex colour to use as the ending stroke colour.
If using a hex colour, use either a single value, or a column of hex colours on data
- stroke_to_opacity
Either a string specifying the
column of data
containing the stroke opacity of each shape, or a value
between 1 and 255 to be applied to all the shapes. If a hex-string is used as the
colour, this argument is ignored and you should include the alpha on the hex string
- stroke_width
width of the stroke in pixels
- frequency
column of data
, or a single value indicating the number of
arcs generated in each animation
- animation_speed
the speed of animation
- trail_length
the length of trail of each arc
- tilt
value to tilt the arcs to the side, in degrees [-90, 90]
- height
value to multiply the height.
- tooltip
variable of data
containing text or HTML to render as a tooltip
- auto_highlight
logical indicating if the shape under the mouse should auto-highlight
- highlight_colour
hex string colour to use for highlighting. Must contain the alpha component.
- legend
either a logical indiciating if the legend(s) should be displayed, or
a named list indicating which colour attributes should be included in the legend.
- legend_options
A list of options for controlling the legend.
- legend_format
A list containing functions to apply to legend values. See section legend
- palette
string or matrix. String will be one of colourvalues::colour_palettes()
.
A matrix must have at least 5 rows, and 3 or 4 columns of values between [0, 255],
where the 4th column represents the alpha. You can use a named list to specify a different
palette for different colour options (where available),
e.g. list(fill_colour = "viridis", stroke_colour = "inferno")
- na_colour
hex string colour to use for NA values
- update_view
logical indicating if the map should update the bounds to include this layer
- focus_layer
logical indicating if the map should update the bounds to only include this layer
- transitions
list specifying the duration of transitions.
- digits
number of digits for rounding coordinates
- brush_radius
radius of the brush in metres. Default NULL. If supplied,
the arcs will only show if the origin or destination are within the radius of the mouse.
If NULL, all arcs are displayed