hexplot {pavo} | R Documentation |
Plot a colour hexagon
Description
Produces a colour hexagon plot.
Usage
hexplot(
hexdata,
achro = TRUE,
labels = TRUE,
sectors = c("none", "fine", "coarse"),
sec.col = "grey",
out.lwd = 1,
out.lty = 1,
out.lcol = "black",
labels.cex = 1,
achrosize = 0.8,
achrocol = "grey",
square = TRUE,
...
)
Arguments
hexdata |
(required) a data frame, possibly a result from the
|
achro |
should a point be plotted at the origin (defaults to |
labels |
logical. Should the name of each cone be printed next to the corresponding vertex? |
sectors |
plot the bee-hue sector dividers? Options are:
|
sec.col |
line colour of hue sector dividers. Defaults to |
out.lwd , out.lcol , out.lty |
graphical parameters for the plot outline. |
labels.cex |
size of the arrow labels. |
achrosize |
size of the point at the origin when |
achrocol |
color of the point at the origin |
square |
logical. Should the aspect ratio of the plot be held to 1:1?
(defaults to |
... |
additional graphical options. See |
Author(s)
Thomas White thomas.white026@gmail.com
References
Chittka L. (1992). The colour hexagon: a chromaticity diagram based on photoreceptor excitations as a generalized representation of colour opponency. Journal of Comparative Physiology A, 170(5), 533-543.
Chittka L, Shmida A, Troje N, Menzel R. (1994). Ultraviolet as a component of flower reflections, and the colour perception of Hymenoptera. Vision research, 34(11), 1489-1508.
Examples
data(flowers)
vis.flowers <- vismodel(flowers,
visual = "apis", qcatch = "Ei", relative = FALSE,
vonkries = TRUE, achromatic = "l", bkg = "green"
)
hex.flowers <- colspace(vis.flowers, space = "hexagon")
plot(hex.flowers)