plotTrait {windex} | R Documentation |
Provides a visualisation of up to three-dimensional trait space (not accounting for phylogeny) for data exploration
Description
Plots the trait space occupied by up to 3 traits with focals highlighted in red.
Usage
plotTrait(dat, traits, focal = dat[, 2], ...)
Arguments
dat |
A dataframe containing a column of 0s and 1s to denote non-focal and focal taxa respectively, and columns of trait data which you which to plot. |
traits |
Column numbers (or names) for 1-3 traits which you want to plot. |
focal |
Column in the dataframe containing the focal designations. |
... |
Arguments to be passed to plot (or scatterplot3d for 3 traits) to customise output. |
Author(s)
Kevin Arbuckle and Amanda Minter
Examples
data(sample.data)
plotTrait(sample.data,c("ou1","ou2"),focal=sample.data[,2])
[Package windex version 2.0.8 Index]