pavo (version 2.5.0)

diplot: Plot a dichromat segment

Description

Produces a dichromat segment plot.

Usage

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

Arguments

didata

(required) a data frame, possibly a result from the colspace() or dispace() function, containing values for the 'x' coordinates as a column (labeled as such).

labels

logical. Should the name of each cone be printed next to the corresponding vertex?

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).

labels.cex

size of the arrow labels.

out.lwd

graphical parameters for the plot outline.

out.lcol

graphical parameters for the plot outline.

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.

Examples

Run this code
# NOT RUN {
data(flowers)
vis.flowers <- vismodel(flowers, visual = "canis")
di.flowers <- colspace(vis.flowers, space = "di")
plot(di.flowers)
# }

Run the code above in your browser using DataLab