plotTrait: Provides a visualisation of up to three-dimensional trait...

View source: R/plotTrait.R

plotTraitR 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])

windex documentation built on June 22, 2024, 6:47 p.m.

Related to plotTrait in windex...