Description Usage Arguments Value Author(s)
View source: R/dewlap_biplot.R
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.
1 2 | dewlap_biplot(pca, groups, i = 2, j = 3, plotCentroids = T,
whatLegend = "habitat")
|
pca |
A |
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. |
A plot.
Raphael Scherrer
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.