Learn R Programming

geoSpectral (version 0.17.5)

spc.plot.time.plotly: Plot a Spectra object data with respect to time

Description

Plot a Spectra object with respect to time

Usage

spc.plot.time.plotly(
  sp,
  column,
  plot.max = 10,
  showlegend = FALSE,
  hoverinfo = "name",
  title = sp@LongName
)

# S4 method for Spectra spc.plot.time.plotly( sp, column, plot.max = 10, showlegend = FALSE, hoverinfo = "name", title = sp@LongName )

Arguments

sp

A Spectra object

column

Number or name , defoult value is 10 if a number or name has not been entered

plot.max

numeric value for a maximum number of data in plot

showlegend

logical, to display legend or not, default is FALSE

hoverinfo

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

title

a chracter string, title for plot

Examples

Run this code
# NOT RUN {
sp = spc.example_spectra()
spc.plot.time.plotly(sp)
spc.plot.time.plotly(sp, plot.max = 3)
spc.plot.time.plotly(sp, c("anap_450","anap_550","anap_650"))
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab