Retrieve or set the quantity of a colorSpec object.
1 2 3 4 5 6 7 8
a colorSpec R object
There are 4 valid
types, which are further divided into 14 valid quantities.
All of these are strings:
'energy' (radiometric), or
Also see the colorSpec User Guide.
quantity() returns the quantity of
type() returns the type of
x, which depends only on the
quantity is more general than the physical SI quantity;
quantity='energy' really includes 10 distinct SI quantities
and maybe more.
The unit is left arbitrary in most cases.
which are dimensionless.
quantity should only be done if one knows what one is doing.
It does not change the underlying numbers.
For example, changing
energy does not do numerical conversion.
For this specific conversion, see
linearize() for conversion
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.