Map component that adds a title
tm_title(
text,
size,
color,
padding,
fontface,
fontfamily,
alpha,
stack,
just,
frame,
frame.color,
frame.alpha,
frame.lwd,
frame.r,
bg,
bg.color,
bg.alpha,
position,
group_id,
width,
height,
z
)tm_title_in(text, ..., position = tm_pos_in("left", "top"))
tm_title_out(text, ..., position = tm_pos_out("center", "top"))
text
font size
font color
padding
font face, bold, italic
font family
alpha transparency of the text
stack with other map components, either "vertical" or "horizontal".
just
frame should a frame be drawn?
frame color
frame alpha transparancy
frame line width
Radius of the rounded frame corners. 0 means no rounding.
Show background?
Background color
Background transparency
The position specification of the component: an object created with tm_pos_in() or tm_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. In case multiple components should be combined (stacked), use group_id and specify component in tm_comp_group().
Component group id name. All components (e.g. legends, titles, etc) with the same group_id will be grouped. The specifications of how they are placed (e.g. stacking, margins etc.) are determined in tm_comp_group() where its argument id should correspond to group_id.
width and height of the component.
z index, e.g. the place of the component relative to the other componets
passed on to tm_title()