Group components
Usage
tm_comp_group(
group_id,
position,
stack,
frame_combine,
equalize,
resize_as_group,
stack_margin,
offset,
frame,
bg.color,
bg.alpha
)
Arguments
- group_id
id of the component group. Refers to the
group_id
argument of each component function, such astm_legend()
andtm_title()
.- position
The position specification of the components in this group: an object created with
tm_pos_in()
ortm_pos_out()
. Or, as a shortcut, a vector of two values, specifying the x and y coordinates. The first is"left"
,"center"
or"right"
(or upper case, meaning tighter to the map frame), the second"top"
,"center"
or"bottom"
. Numeric values are also supported, where 0, 0 means left bottom and 1, 1 right top. See also vignette about positioning.- stack
stacking
"horizontal"
or"vertical"
- frame_combine
put frame around all components that are drawn on the same location. Whether a frame is drawn is still decided by the
frame
argument of the 'main' (first) component.- equalize
in case
frame_combine
isFALSE
, should the separate frames be equalized, i.e. have the same width (when stacked vertically) or height (when stacked horizontally)?- resize_as_group
in case a component if rescaled because of the limited space, rescale the other components proportionally?
- stack_margin
Margin between components
- offset
Offset margin between frame and the components block
- frame
Frame of the components. Is usually set in each component function, but if specified here, it will overwrite them.
- bg.color
Background color the components block. Is usually set in each component function, but if specified here, it will overwrite them.
- bg.alpha
Background alpha transparency of the components block. Is usually set in each component function, but if specified here, it will overwrite them.