Learn R Programming

pavo (version 1.0.0)

cocplot: Plot the colour opponent coding diagram

Description

Produces a plot based on the colour opponent coding diagram of Backhaus (1991).

Usage

cocplot(cocdata, labels = TRUE, lab.cex = 0.9, tick.loc = c(-12, -9, -6, -3, 3, 6, 9, 12), achro = FALSE, achrosize = 0.8, achrocol = "grey", margins = c(1, 1, 2, 2), square = TRUE, ...)

Arguments

cocdata
(required) a data frame, possibly a result from the categorical function, containing values for 'x' and 'y' coordinates as columns (labeled as such).
labels
plot axis labels? Defaults to TRUE.
lab.cex
character expansion factor for category labels when labels = TRUE).
tick.loc
a numeric vector specifying the location of tick marks on x & y axes.
achro
should a point be plotted at the origin (defaults to TRUE)?
achrosize
size of the point at the origin when achro = TRUE (defaults to 0.8).
achrocol
color of the point at the origin achro = TRUE (defaults to 'grey').
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

Backhaus W. (1991). Color opponent coding in the visual system of the honeybee. Vision Research, 31, 1381-1397.

Examples

Run this code
## Not run: 
# data(flowers)
# vis.flowers <- vismodel(flowers, visual = 'apis', qcatch = 'Ei', relative = FALSE, vonkries = TRUE)
# coc.flowers <- colspace(vis.flowers, space = 'coc')
# plot(coc.flowers)
# ## End(Not run)

Run the code above in your browser using DataLab