View source: R/plotting_functions.R
plot_interactive | R Documentation |
Interactively plots spectra with a shiny app. Useful to inspect large datasets.
plot_interactive( spec, colpalette = function(n) RColorBrewer::brewer.pal(n, "Dark2"), ... )
spec |
spectra object |
colpalette |
a color palette function, e.g. rainbow, terrain.colors, or a function returned by colorRampPalette() or colorRamps package |
... |
Other arguments passed to plot |
plot_interact
limits the number of spectra displayed at once to 600 for
performance reasons. As of now, the function does not return anything and does
not have side effects. This means that spectra can be selected and highlighted
but not yet deleted or subset from the shiny app.
interactive plot
Jose Eduardo Meireles and Anna K. Schweiger
## Not run: # Create a spectra object spec = as_spectra(spec_matrix_example, name_idx = 1) # Start interactive plot plot_interactive(spec) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.