qplot_spRangeMean.RdPlot range of y axis values (usually intensities) of spectroscopic data
between selected percentilles.
Function qplot_spRange() returns whole ggplot and
function layer_spRange() returns a layer which can be added to a ggplot.
Plot range of y axis values (usually intensities) of spectroscopic data
between selected percentilles.
Function qplot_spRange() returns whole ggplot and
function layer_spRange() returns a layer which can be added to a ggplot.
layer_spRangeMean(
sp,
by = NULL,
percent = NULL,
probs = NULL,
palette = hyGet_palette(sp),
...,
lty = 2,
lwd_mean = 1,
alpha = 0.2,
add = TRUE,
name_if_by_is_NULL = "All Data"
)
qplot_spRangeMean(
sp,
by = NULL,
percent = NULL,
probs = NULL,
palette = hyGet_palette(sp),
...,
lwd_mean = 1,
alpha = 0.2,
add = FALSE,
name_if_by_is_NULL = "All Data"
)hyperSpec object.
A vector (factor variable) with indicated groups for each case:
either variable name inside the object sp, or a vector
of length nrow(sp).
Numeric value between 0 and 100 that indicates percentage of samples nearest to median be plotted as a ribbon.
verctor of size 2 with values between 0 and 1 that indicates probabilities at which percentiles should be plotted.
further arguments to geom_ribon.
(numeric from 0 to 1) transperency.
(logical) add plot to an existing ggplot object?
A ggplot object.
More details in package ggplot2.
A ggplot object.
More details in package ggplot2.
Other spHelper plots:
check_palette(),
plot_colors(),
plot_hyPalette(),
plot_spCompare(),
plot_spDiff(),
plot_spDistribution(),
qplot_confusion(),
qplot_crosstab(),
qplot_infoDim(),
qplot_kAmp(),
qplot_kSp(),
qplot_prediction(),
qplot_spRangeCenter(),
qplot_spRangeMedian(),
qplot_spStat(),
qplot_spc(),
rmExpr(),
rm_stripes(),
stat_chull()
Other spHelper plots:
check_palette(),
plot_colors(),
plot_hyPalette(),
plot_spCompare(),
plot_spDiff(),
plot_spDistribution(),
qplot_confusion(),
qplot_crosstab(),
qplot_infoDim(),
qplot_kAmp(),
qplot_kSp(),
qplot_prediction(),
qplot_spRangeCenter(),
qplot_spRangeMedian(),
qplot_spStat(),
qplot_spc(),
rmExpr(),
rm_stripes(),
stat_chull()
library(spHelper)
library(spPlot)
qplot_spRangeMean(Spectra2)
qplot_spRangeMean(Spectra2, "gr")
# Both lines below gives identical plots with different default titles:
qplot_spRangeMean(Spectra2, "gr", percent = 50)
qplot_spRangeMean(Spectra2, "gr", probs = c(.25, .75))
ggplotly_tidy()
#> Error in simsalapar::expr2latex(expr): is not language nor symbol), but length(.) = 4 != 1
library(spHelper)
library(spPlot)
qplot_spRangeMean(Spectra2)
qplot_spRangeMean(Spectra2, "gr")
# Both lines below gives identical plots with different default titles:
qplot_spRangeMean(Spectra2, "gr", percent = 50)
qplot_spRangeMean(Spectra2, "gr", probs = c(.25, .75))
ggplotly_tidy()
#> Error in simsalapar::expr2latex(expr): is not language nor symbol), but length(.) = 4 != 1