qplot_spDistrib: [!] Plot distributions of spectroscopic data

View source: R/qplot_spDistrib.R

qplot_spDistribR Documentation

[!] Plot distributions of spectroscopic data

Description

[!] Plot distributions of spectroscopic data

Usage

qplot_spDistrib(
  sp,
  by = stop("`by` is missing"),
  percent = NULL,
  probs = NULL,
  palette = hyGet_palette(sp)
)

Arguments

sp

hyperSpec object.

by

A vector (factor variable) with indicated groups for each case: either variable name inside the object sp, or a vector of length nrow(sp).

percent

Numeric value between 0 and 100 that indicates percentage of samples nearest to median be plotted as a ribbon.

probs

verctor of size 2 with values between 0 and 1 that indicates probabilities at which percentiles should be plotted.

Value

A ggplot object. More details in package ggplot2.

Author(s)

Vilmantas Gegzna


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.