Learn R Programming

geoSpectral (version 0.17.5)

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

Description

Create a point map with ploty engine using Spectra rows

Usage

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

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

Arguments

sp

A Spectra object

hover_field

A character, column names of sp object to be used in hover box

color

Determine color of points

opacity

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

Examples

Run this code
# NOT RUN {
sp <- spc.example_spectra()
spc.plot.map.plotly(sp)

# }

Run the code above in your browser using DataLab