Skip to contents

Map component that adds a title

Usage

tm_title(
  text,
  size,
  color,
  padding,
  fontface,
  fontfamily,
  stack,
  just,
  frame,
  frame.lwd,
  frame.r,
  bg.color,
  bg.alpha,
  position,
  width,
  height,
  group.frame,
  resize_as_group,
  z
)

tm_title_in(text, ..., position = tm_pos_in("left", "top"))

tm_title_out(text, ..., position = tm_pos_out("center", "top"))

Arguments

text

text of the title

size

font size of the title

color

font color of the title

padding

padding

fontface

font face, bold, italic

fontfamily

font family

stack

stack

just

just

frame

frame

frame.lwd

frame line width

frame.r

Radius of the rounded frame corners. 0 means no rounding.

bg.color

Background color

bg.alpha

Background transparency

position

Vector of two values, specifying the x and y coordinates. The first is either "left" or "right", the second either "top" or "bottom".

width, height

width and height of the title box.

group.frame

group.frame

resize_as_group

resize_as_group

z

z

...

passed on to tm_title()