powered by
Plots the trait space occupied by up to 3 traits with focals highlighted in red.
plotTrait(dat, traits, focal = dat[, 2], ...)
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.
Column numbers (or names) for 1-3 traits which you want to plot.
Column in the dataframe containing the focal designations.
Arguments to be passed to plot (or scatterplot3d for 3 traits) to customise output.
Kevin Arbuckle and Amanda Minter
data(sample.data) plotTrait(sample.data,c("ou1","ou2"),focal=sample.data[,2])
Run the code above in your browser using DataLab