jndrot | R Documentation |
jnd2xyz()
Rotate Cartesian coordinates obtained from jnd2xyz()
jndrot(
jnd2xyzres,
center = c("mean", "achro"),
ref1 = "l",
ref2 = "u",
axis1 = c(1, 1, 0),
axis2 = c(0, 0, 1)
)
jnd2xyzres |
(required) the output from a |
center |
should the vectors for rotation be centered in the achromatic center ("achro") or the data centroid ("mean", the default)? |
ref1 |
the cone to be used as a the first reference. May be |
ref2 |
the cone to be used as a the second reference. May be |
axis1 |
A vector of length number of cones minus 1 composed of 0's and
1's, with 1's representing the axes (x, y, z) to rotate around. Defaults to
c(1, 1, 0) in 3 dimensions, such that the rotation aligns with the xy plane,
and c(1, 0) in 2 dimentions, such that the rotation is centered on the x
axis. Ignored if |
axis2 |
A vector of length number of cones minus 1 composed of 0's and
1's, with 1's representing the axes (x, y, z) to rotate around. Defaults to
c(0, 0, 1) in 3 dimensions, such that the rotation aligns with the z axis,
and c(0, 1) in 2 dimentions, such that the rotation is centered on the y
axis. Ignored if |
Rafael Maia rm72@zips.uakron.edu
# Load floral reflectance spectra
data(flowers)
# Estimate quantum catches visual phenotype of a Blue Tit
vis.flowers <- vismodel(flowers, visual = "bluetit")
# Estimate noise-weighted colour distances between all flowers
cd.flowers <- coldist(vis.flowers)
# Convert points to Cartesian coordinates in which Euclidean distances are
# noise-weighted, before rotating them about the data centroid
jndrot(jnd2xyz(cd.flowers))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.