View source: R/sp_remove_offset.R
sp_remove_offset | R Documentation |
Convenience function to remove offset from spectroscopic data in a hyperSpec
object.
sp_remove_offset(
sp,
in_range = min ~ max,
offset = 0,
method = "not_used_yet",
at = NULL
)
sp |
|
in_range, at |
( |
offset |
(number) |
sp
with y-axis offset removed in (sp@data$spc
).
library(magrittr)
Spectra2 %>% plotspc()
Spectra2 %>% sp_remove_offset() %>% plotspc()
Spectra2 %>% sp_remove_offset(in_range = 300~400) %>% plotspc()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.