qplotmap {hyperSpec}R Documentation

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

plotmap

ggplotgeom_tile

Examples

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

[Package hyperSpec version 0.100.2 Index]