Learn R Programming

simplevis (version 5.0.0)

leaflet_stars: Stars leaflet map.

Description

Map of stars in leaflet that is not coloured.

Usage

leaflet_stars(data, pal = NULL, alpha = 0.5, basemap = "light", map_id = "map")

Arguments

data

A stars object. Required input.

pal

Character vector of hex codes.

alpha

The opacity of the array values.

basemap

The underlying basemap. Either "light", "dark", "satellite", "street", or "ocean". Defaults to "light". Only applicable where shiny equals FALSE.

map_id

The shiny map id for a leaflet map within a shiny app. For standard single-map apps, id "map" should be used. For dual-map apps, "map1" and "map2" should be used. Defaults to "map".

Value

A leaflet object.

Examples

Run this code
# NOT RUN {
library(simplevis)
library(stars)

leaflet_stars(example_stars) 
  
# }

Run the code above in your browser using DataLab