Add labels to a globe.

globe_labels(globe, ...)

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.

Coordinates

Valid coordinates.

  • lat, lon,

  • altitude

  • color

  • label

  • resolution

  • transition

  • size

  • text

  • rotation

  • include_dot

  • dot_radius

  • dot_orientation

  • type_face

Examples

quakes %>% create_globe() %>% globe_img_url() %>% globe_labels( coords(lat, long, text = stations) ) library(shiny) ui <- fluidPage( actionButton("add", "add quakes labels"), globeOutput("globe") ) server <- function(input, output){ output$globe <- renderGlobe({ create_globe() %>% globe_img_url() }) observeEvent(input$add, { globeProxy("globe") %>% globe_labels( coords(lat, long, text = stations), data = quakes ) }) }
# NOT RUN { shinyApp(ui, server) # }