Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

qplotmap

Spectra plotting with ggplot2


Description

Spectra plotting with ggplot2

Usage

qplotmap(
  object,
  mapping = aes_string(x = "x", y = "y", fill = "spc"),
  ...,
  func = mean,
  func.args = list(),
  map.tileonly = FALSE
)

Arguments

object

hyperSpec object

mapping

see geom_tile

...

handed to geom_tile

func

function to summarize the wavelengths

func.args

arguments to func

map.tileonly

if TRUE, mapping will be handed to geom_tile instead of ggplot.

Details

These functions are still experimental and may change substantially in future.

Note that qplotmap will currently produce the wrong scales if x or y are discrete.

Value

a ggplot object

Author(s)

Claudia Beleites

See Also

Examples

qplotmap (chondro)
qplotmap (chondro) + scale_fill_gradientn (colours = alois.palette ())

hyperSpec

Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

v0.100.0
GPL (>= 3)
Authors
Claudia Beleites [aut, cre, dtc] (<https://orcid.org/0000-0003-1626-154X>), Valter Sergo [aut], Alois Bonifacio [ctb, dtc], Marcel Dahms [ctb], Björn Egert [ctb], Simon Fuller [ctb], Vilmantas Gegzna [ctb], Rustam Guliev [ctb], Bryan A. Hanson [ctb], Michael Hermes [ctb], Martin Kammer [dtc], Roman Kiselev [ctb], Sebastian Mellor [ctb]
Initial release
2021-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.