spc.plot.plotly: Plot a Spectra object data

Description Usage Arguments Examples

Description

Plot a Spectra object with plotly engine

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
spc.plot.plotly(
  sp,
  plot.max = 10,
  showlegend = FALSE,
  legend_field = "row",
  hoverinfo = "title",
  title = sp@LongName
)

## S4 method for signature 'Spectra'
spc.plot.plotly(
  sp,
  plot.max = 10,
  showlegend = FALSE,
  legend_field = "row",
  hoverinfo = "title",
  title = sp@LongName
)

Arguments

sp

A Spectra object

plot.max

numeric value for a maximum number of data in plot. Default is 10.

showlegend

logical, to display legend or not, default is FALSE

legend_field

character. Gives the name of the column to be used in the legend.

hoverinfo

a chracter, info about Spectra object to be used in hover box.

title

a chracter string, title for plot.

Examples

1
2
3
4
5
6
7
sp = spc.example_spectra()
spc.plot.plotly(sp)
spc.plot.plotly(sp,legend_field = "Spectra")
spc.plot.plotly(sp,legend_field = "CAST")
spc.plot.plotly(sp,legend_field = "NISKIN")
spc.plot.plotly(sp,legend_field = "STATION")
spc.plot.plotly(sp,legend_field = "anap_440")

PranaGeo/geoSpectral documentation built on Feb. 21, 2020, 10:22 a.m.