dewlap_biplot: Dewlap color space biplot

Description Usage Arguments Value Author(s)

View source: R/dewlap_biplot.R

Description

This function plots individual dewlaps in the color space defined by principal components based on reflectance. It can plot each individual lizard, or centroids of habitats per island.

Usage

1
2
dewlap_biplot(pca, groups, i = 2, j = 3, plotCentroids = T,
  whatLegend = "habitat")

Arguments

pca

A prcomp object.

groups

A data frame containing information about island and habitat for each lizard.

i, j

Which components to plot against each other? Defaults to i = 2 and j = 3.

plotCentroids

Logical. Whether to plot habitat and island centroids (T, default) or all observations (F).

whatLegend

A character vector. What legend to display? If contains "island", the legend of colors for island will be displayed in the top-left corner. If contains "habitat", the legend of shapes for habitats will be displayed in the bottom right corner. "n" if legend should not be plotted.

Value

A plot.

Author(s)

Raphael Scherrer


rscherrer/sagreicolor documentation built on Dec. 26, 2018, 1:15 p.m.