Learn R Programming

photobiology (version 0.9.5)

color.source_mspct: Color

Description

A function that returns the equivalent RGB colour of an object of class "source_spct".

Usage

## S3 method for class 'source_mspct':
color(x, ..., idx = !is.null(names(x)))

## S3 method for class 'source_spct':
color(x, type = "CMF", ...)

Arguments

x
an object of class "source_spct"
...
not used in current version
idx
logical whether to add a column with the names of the elements of spct
type
character telling whether "CMF", "CC", or "both" should be returned.

Examples

Run this code
color(sun.spct)

Run the code above in your browser using DataLab