qplotc: Spectra plotting with ggplot2

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

Description

Spectra plotting with ggplot2

Usage

1
2
qplotc(object, mapping = aes_string(x = "c", y = "spc"), ..., func = NULL,
  func.args = list(), map.pointonly = FALSE)

Arguments

object

hyperSpec object

mapping

see geom_point

...

handed to geom_point

func

function to summarize the wavelengths, if NULL, only the first wavelength is used

func.args

arguments to func

map.pointonly

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

Details

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

Value

a ggplot object

Author(s)

Claudia Beleites

See Also

plotc

ggplotgeom_point

Examples

1
2
qplotc (flu)
qplotc (flu) + geom_smooth (method = "lm")

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: ggplot2
Package hyperSpec, version 0.98-20161118

To get started, try
   vignette ("introduction", package = "hyperSpec")
   package?hyperSpec 
   vignette (package = "hyperSpec")

If you use this package please cite it appropriately.
   citation("hyperSpec")
will give you the correct reference.

The project homepage is http://hyperspec.r-forge.r-project.org


Warning message:
In qplotc(flu) : Intensity at first wavelengh only is used.
Warning message:
In qplotc(flu) : Intensity at first wavelengh only is used.

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