plot.rdaccahp {rdacca.hp}R Documentation

Plot for a rdacca.hp object

Description

Plot for a rdacca.hp object

Usage

## S3 method for class 'rdaccahp'
plot(x, plot.perc = FALSE, color = NULL, ...)

Arguments

x

A rdacca.hp object.

plot.perc

Logical;if TRUE, the bar plot (based on ggplot2 package) of the percentage to individual effects of variables or groups towards total explained variation, the default is FALSE to show plot with original individual effects.

color

Color of variables.

...

unused

Value

a ggplot object

Author(s)

Jiangshan Lai lai@njfu.edu.cn

Yao Liu liuyao@stu.xmu.edu.cn

Examples

library(vegan)
data(mite)
data(mite.env)
mite.hel <- decostand(mite, "hellinger")
avc<-rdacca.hp(mite.hel,mite.env,method="RDA",type="adjR2")
plot(avc)
plot(avc, plot.perc=TRUE)
avc<-rdacca.hp(mite.hel,mite.env[,1:3],method="RDA",type="adjR2",var.part=TRUE)
plot(avc,color = c("#8DD3C7", "#FFFFB3", "#BEBADA"))

[Package rdacca.hp version 1.1-0 Index]