colorSpec (version 0.5-3)

quantity: quantity of a colorSpec object

Description

Retrieve or set the quantity of a colorSpec object.

Usage

"quantity"(x) quantity(x) <- value
"type"(x)

Arguments

x
a colorSpec R object
value
a valid quantity string; see Details.

Value

quantity returns the quantity of xtype returns the type of x, which depends only on the quantity.

Details

There are 4 valid types, which are further divided into 14 valid quantities. All of these are strings:

For type='light' quantity = 'power' (radiometric), or 'photons/sec' (actinometric)

For type='responsivity.light' quantity = 'power->electrical', 'power->neural', 'power->action', 'photons->electrical', 'photons->neural', or 'photons->action'

For type='material' quantity = 'reflectance', 'transmittance', or 'absorbance'

For type='responsivity.material' quantity = 'material->electrical', 'material->neural', or 'material->action'

For more explanation and examples of all these see colorSpec-guide.pdf in the doc directory. Go to the main index page and look for User guides, package vignettes and other documentation.

See Also

colorSpec; radiometric; linearize