Learn R Programming

pavo (version 2.0.0)

segplot: Plot the segment-analysis model

Description

Produces a plot based on Endler's (1990) segment analysis.

Usage

segplot(segdata, labels = TRUE, lab.cex = 0.9, out.lwd = 1,
  out.lty = 1, out.lcol = "black", tick.loc = c(-1, -0.5, 0.5, 1),
  margins = c(1, 1, 2, 2), square = TRUE, ...)

Arguments

segdata

(required) a data frame, possibly a result from the colspace or segspace function, containing values for 'LM' and 'MS' as columns (labeled as such).

labels

plot category labels inside? Defaults to TRUE.

lab.cex

character expansion factor for category labels when labels = TRUE).

out.lwd, out.lcol, out.lty

graphical parameters for plot outline.

tick.loc

a numeric vector specifying the location of tick marks on x & y axes. (defaults to c(-1, -0.5, 0.5, 1))

margins

margins for the plot. (defaults to c(1, 1, 2, 2))

square

square plotting area? (defaults to TRUE)

...

additional graphical options. See par.

References

Endler, J. A. (1990) On the measurement and classification of color in studies of animal color patterns. Biological Journal of the Linnean Society, 41, 315-352.

Examples

Run this code
# NOT RUN {
data(flowers)
vis.flowers <- vismodel(flowers, visual = 'segment', achromatic = 'all')
seg.flowers <- colspace(vis.flowers, space = 'segment')
plot(seg.flowers)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab