Add a title to a globe.

globe_title(
  globe,
  text,
  tag = shiny::tags$h1,
  vertical = c("top", "bottom"),
  horizontal = c("left", "right"),
  color = "#fff",
  margin = "3%"
)

Arguments

globe

An object of class globe as returned by create_globe, or an object of class globeProxy as returned by globeProxy.

text

The text to display as title or subtitle.

tag

The html tag to use, from tags.

vertical, horizontal

Alignment of title.

color

Color of title or title.

margin

Margin from horizontal and vertical.

Examples

create_globe() %>% globe_pov(-21, 179) %>% globe_bars( coords(lat, long, label = stations), data = quakes ) %>% globe_title("A Globe!")