Learn R Programming

hyperSpec (version 0.98-20140523)

qplotc: Spectra plotting with ggplot2

Description

Spectra plotting with ggplot2

Usage

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

Arguments

object
hyperSpec object
mapping
...
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.

Value

Details

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

See Also

plotc

ggplotgeom_point

Examples

Run this code
qplotc (flu)
qplotc (flu) + geom_smooth (method = "lm")

Run the code above in your browser using DataLab