qplotmap: Spectra plotting with ggplot2

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Spectra plotting with ggplot2

Usage

1
2
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

1
2
3
4
5
qplotmap (chondro)
qplotmap (chondro) + scale_fill_gradientn (colours = alois.palette ())

## works also with discrete x or y axis:
qplotmap (chondro, mapping = aes (x = x, y = as.factor (y), fill = spc))

hyperSpec documentation built on May 2, 2019, 5:45 p.m.