This function plots spectroscopic concenration, depth, time-series, etc. profiles by using ggplot2.
Note: The function is still experimental and may change in the future.
qplotc(
object,
mapping = aes_string(x = "c", y = "spc"),
...,
func = NULL,
func.args = list(),
map.pointonly = FALSE
)
A hyperSpec
object.
Further arguments handed to ggplot2::geom_point()
.
Function to summarize the wavelengths. If NULL
, only the first
wavelength is used.
A named list with arguments to func
.
If TRUE
, mapping
will be handed to
ggplot2::geom_point()
instead of ggplot2::ggplot()
.
A ggplot2::ggplot()
object.
qplotc(flu) # Notice the warning
#> Warning: Intensity at first wavelengh only is used.
qplotc(flu[ , , 410])
qplotc(flu[ , , 410]) + geom_smooth(method = "lm", formula = y ~ x)
qplotc(flu, func = mean)