Add paths to a globe.

globe_paths(
  globe,
  ...,
  data = NULL,
  inherit_coords = TRUE,
  on_click = NULL,
  on_right_click = NULL,
  on_hover = NULL
)

Arguments

globe

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

...

Coordinates, as specified by coords.

data

A data.frame of points to draw.

inherit_coords

Whether to inherit the coordinates (coords) from create_globe. Only applies to method applied to object of class globe4r not on objects of class globeProxy.

on_click

JavaScript functions as JS or TRUE to pick up the event from Shiny server side, see example.

on_right_click

JavaScript functions as JS or TRUE to pick up the event from Shiny server side, see example.

on_hover

JavaScript functions as JS or TRUE to pick up the event from Shiny server side, see example.

Coordinates

Valid coordinates.

  • label

  • altitude

  • color

  • resolution

  • stroke

  • dash_length

  • initial_dash_length

  • dash_animate_time

  • transition

Examples

create_globe(cables) %>% globe_paths( coords( color = color, dash_length = .1, dash_gap = .008, dash_animate_time = 12000 ) )