entropy.plot: Entropy plot

Description Usage Arguments Value See Also Examples

View source: R/entropy.plot.R

Description

Plots components of entropy by species or sites.

Usage

1
2
3
entropy.plot(lst, y, x, ord=TRUE, type=c("species","sites")[1],
 labs, segs = TRUE, wid.seg=0.25,
 pchs = c(15,19,0,2,6,2,15,17,21,17), ...)

Arguments

lst

a list of mdm fitted models

y

optional – locations of the components on the vertical axis

x

optional – used to provide the range of the horizontal axis

ord

if TRUE orders the components by total entropy of each fitted model.

type

should the plot break down entropy by species (columns = default) or sites (rows).

labs

an (optional) vector of labels for species (or sites if type == "sites").

segs

use segments to plot end of bars as vertical lines

wid.seg

widths of bar ends

pchs

some nice plotting characters

...

other arguements passed to the plot function (e.g. cex).

Value

a list of plotted values of the length of lst, each component of which is of length equal to the number of species (sites).

See Also

mdm

Examples

1
2
3
4
5
6
data(spider6)
fit0 <- mdm(y2p(spider6[,1:6])~1,data=spider6)
fit1 <- mdm(y2p(spider6[,1:6])~Water+Herbs,data=spider6)
fit2 <- mdm(y2p(spider6[,1:6])~Site,data=spider6,alpha=TRUE)
anova(fit0,fit1,fit2)
entropy.plot(list(fit0,fit2,fit1))

MDM documentation built on May 30, 2017, 4:58 a.m.