globe_labels.Rd
Add labels to a globe.
globe_labels(globe, ...)
globe | An object of class |
---|---|
... | Coordinates, as specified by |
Valid coordinates.
lat
, lon
,
altitude
color
label
resolution
transition
size
text
rotation
include_dot
dot_radius
dot_orientation
type_face
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) # }