Learn R Programming

geoSpectral (version 0.17.5)

spc.plot.map.leaflet: Display a Spectra object

Description

Create a point map with leaflet engine using Spectra rows

Usage

spc.plot.map.leaflet(
  sp,
  hover_field = "row",
  color = "#FF0000",
  opacity = 1,
  weight = 5
)

# S4 method for Spectra spc.plot.map.leaflet( sp, hover_field = "row", color = "#FF0000", opacity = 1, weight = 5 )

Arguments

sp

Spectra object

hover_field

A character or vector of strings giving column names of Spectra object. This information will be displayed when hovering over the glyph

color

Determine color of points

opacity

The opacity transparency of the glyph between 0 (transparent) and 1 (opaque)

weight

Stroke width in pixels

Examples

Run this code
# NOT RUN {
sp=spc.example_spectra()
spc.plot.map.leaflet(sp)

# }

Run the code above in your browser using DataLab