constant.Rd
Wraps a constant in a JavaScript function as most underlying JavaScript functions expect it.
constant(x)
x | A constant. |
---|
# create plot g <- create_globe() %>% globe_img_url() %>% bars_data(quakes) %>% bars_lat("lat") %>% bars_lon("long") # passing a constant straight does not work# NOT RUN { bars_color(g, "red") # }