Skip to contents

Map component that adds a scale bar. As of version 4.0, tm_scalebar() is used instead of tm_scale_bar() (now deprecated), because of the potential confusion with the tm_scale_*() scaling functions (like tm_scale_continuous()).

Usage

tm_scalebar(
  breaks,
  width,
  text.size,
  text.color,
  color.dark,
  color.light,
  lwd,
  position,
  bg.color,
  bg.alpha,
  size = "deprecated",
  stack,
  frame,
  frame.lwd,
  frame.r,
  margins,
  z
)

Arguments

breaks

breaks

width

width

text.size

text.size

text.color

text.color

color.dark

color.dark

color.light

color.light

lwd

lwd

position

position

bg.color

bg.color

bg.alpha

bg.alpha

size

size

stack

stack

frame

frame

frame.lwd

frame.lwd

frame.r

frame.r

margins

margins

z

z