Learn R Programming

pavo (version 1.0.0)

triplot: Plot a maxwell triangle

Description

Produces a Maxwell triangle plot.

Usage

triplot(tridata, labels = TRUE, achro = TRUE, achrocol = "grey", achrosize = 0.8, cex.labels = 1, out.lwd = 1, out.lcol = "black", out.lty = 1, margins = c(1, 1, 2, 2), square = TRUE, ...)

Arguments

tridata
(required) a data frame, possibly a result from the trispace . function, containing values for the 'x' and 'y' coordinates as columns (labeled as such).
labels
plot verticy labels? Defaults to TRUE.
achro
should a point be plotted at the origin (defaults to TRUE)?.
achrocol
color of the point at the origin achro = TRUE (defaults to 'grey').
achrosize
size of the point at the origin when achro = TRUE (defaults to 0.8).
cex.labels
character expansion factor for category labels when labels = TRUE).
out.lwd, out.lcol, out.lty
graphical parameters for the plot outline.
margins
margins for the plot.
square
logical. Should the aspect ratio of the plot be held to 1:1? (defaults to TRUE)
...
additional graphical options. See par.

References

Kelber A, Vorobyev M, Osorio D. (2003). Animal colour vision - behavioural tests and physiological concepts. Biological Reviews, 78, 81 - 118.

Neumeyer C (1980) Simultaneous color contrast in the honeybee. Journal of comparative physiology, 139(3), 165-176.

Examples

Run this code
## Not run: 
# data(flowers)
# vis.flowers <- vismodel(flowers, visual = 'apis')
# tri.flowers <- colspace(vis.flowers, space = 'tri')
# plot(tri.flowers)
# ## End(Not run)

Run the code above in your browser using DataLab