Description Usage Arguments Examples
Plot a Spectra
object with plotly engine
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
)
|
sp |
A |
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 |
title |
a chracter string, title for plot. |
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.