leaf_stars: Stars leaflet map.

View source: R/leaf_stars.R

leaf_starsR Documentation

Stars leaflet map.

Description

Map of stars in leaflet that is not coloured.

Usage

leaf_stars(
  data,
  pal = pal_viridis_mix(1),
  alpha_fill = 0.5,
  basemap = "light",
  group_id = NULL,
  map_id = "map"
)

Arguments

data

A stars object. Required input.

pal

Character vector of hex codes.

alpha_fill

The opacity of the fill. Defaults to 0.5.

basemap

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

group_id

The id name for the stars group.

map_id

The map id for the leaflet map. Defaults to "map".

Value

A leaflet object.

Examples

## Not run: 
library(simplevis)

leaf_stars(example_stars) 

## End(Not run)
  

simplevis documentation built on May 31, 2023, 7:02 p.m.