Package {PERMANOVA}


Type: Package
Title: Multivariate Analysis of Variance Based on Distances and Permutations
Version: 16.11.26
Description: Calculates multivariate analysis of variance based on permutations and some associated pictorial representations. The pictorial representation is based on the principal coordinates of the group means. There are some original results that will be published soon.
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
Encoding: UTF-8
Depends: R (≥ 4.0.0)
Imports: Matrix, xtable, MASS, scales, deldir, grDevices, graphics, stats, MultBiplotR, dbrobust, parallel
LazyData: true
NeedsCompilation: no
Packaged: 2026-11-16 21:27:36 UTC; laura
Author: Laura Vicente-Gonzalez [aut, cre], Jose Luis Vicente-Villardon [aut]
Maintainer: Laura Vicente-Gonzalez <laura20vg@usal.es>
Repository: CRAN
Date/Publication: 2026-11-16 22:40:02 UTC

Multivariate Analysis of Variance based on Distances and Bootstrap

Description

Multivariate Analysis of variance based on distances and Bootstrap.

Usage

BootDisMANOVA(Distance, groups, C = NULL, Effects = NULL, nB = 1000, seed = NULL,
CoordPrinc = FALSE, dimens = 2, PCoA = "Standard", ProjectInd = TRUE, tol = 1e-04,
DatosIni = TRUE)

Arguments

Distance

A matrix of distances.

groups

A factor containing the groups to compare.

C

A matrix of contrasts (if null the identity is used).

Effects

A vector of effects.

nB

Number of Bootstrap replicates.

seed

Seed for the random numbers.

CoordPrinc

Should Principal Coordinates be calculated.

dimens

Dimension of the solution.

PCoA

Type of Principal Coordinates to calulate.

ProjectInd

Should the individuals be projected onto the graph.

tol

Tolerance for convergence of the algorithms.

DatosIni

Should the initial data be included in the results.

Details

Multivariate Analysis of Variance based on distances and Bootstrap.

Value

call

Function

Title

Title of the study

Type

BootMANOVA

Distances

A matrix containing the distances between individuals.

C

Contrasts Matrix.

Initial

Containing two matrices:

* Global -> Global contrast.

* Contrastes ->Contrasts for groups.

DistMuestral

Sample distribution of F-exp from permutations.

pvalue

Estimate p-valor for PERMANOVA.

ExplainedVariance

Explained variance by Principal Coordinates selected.

Inertias

Eigenvalue, Explained variance, Cumulative explained variance.

MeanCoordinates

Mean Coordinates by groups for the dimensions obtained in the Principal Coordinates Analysis.

Qualities

Qualities representation by groups for the dimensions of PCoA.

CummulativeQualities

Cummulative qualities representation.

ClusterType

Cluster type selected.

Clusters

Clusters created.

ClusterNames

Names of clusters

ClusterColors

Colors of clusters, color name and HTML code.

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Anderson, M. J. (2001). A new method for non-parametric multivariate analysis of variance. Austral ecology, 26(1):32–46.

Anderson, M. J. (2005). Permanova: a fortran computer program for permutational multivariate analysis of variance. Department of Statistics, University of Auckland, New Zealand, 24.

Examples

data(wine)
X = wine[,4:21]
D = DistContinuous (X)
bootwine=BootDisMANOVA(D, wine$Group)
bootwine


Canonical Analysis based on Distances

Description

Canonical Analysis based on distances. Confidence Regions for the mean vectors are calculated using bootstrap.

Usage

BootDistCanonicalAnalysis(Distance, groups, dimens = NULL, nB = 100, seed = NULL,
PCoA = "Standard", ProcrustesRot = TRUE, DatosIni = TRUE, tol = 1e-04)

Arguments

Distance

A list of three elements containing the data, the distances between individuals and type of distance used.

groups

A factor containing the groups to compare.

dimens

Number of dimensions to choose . By default is 2.

nB

Number of Bootstrap samples.

seed

Seed for the generation of the random samples (Added for reproducibility)

PCoA

The type of Principal Coordinates Analysis.

There are two possibilities:

* Standard

* Weighted

By default is Standard.

ProcrustesRot

Should Procrustes rotation be applied to the configurations?

DatosIni

The input object contains the initial data?. By default is TRUE.

tol

Tolerance

Details

Calculates a Canonical Analysis based on distance matrices with confidence regions based on bootstrap resampling.

Value

D

The distance matrix used for calculations

Coefficient

Dissimilarity coefficient used to calculate the proximities

nB

Number of bootstrap samples

Groups

Factor containing the groups to compare

GroupNames

Names of the groups

Inertia

Variance accounted for ech canonical coordinate

Inertias

able with the eigenvalue, variance accounted and cumulated variance

MeanCoordinates

Coordinates of the groups in the representation

Qualities

Qualities of the representation of the group means

CumulativeQualities

Cumulative Qualities of the representation

CoordBoot

Coordinates of the bootstrap replicates

RowCoordinates

Coordinates of the individuals

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Gower, J. C. and Krzanowski, W. J. (1999). Analysis of distance for structured multivariate data and extensions to multivariate analysis of variance. Journal of the Royal Statistical Society: Series C (Applied Statistics), 48(4):505–519.

Examples

data(wine)
X=wine[,4:21]
Dist=DistContinuous(X)
canon=BootDistCanonicalAnalysis(Dist, groups=wine$Group, nB=10)

Construction of contrasts for several factors

Description

Constructs the contrasts for main effects and interaction for a dataframe of factors.

Usage

ConstructContrasts(Factors, MaxOrderIter = 2)

Arguments

Factors

A data frame of factors (For general data frames the functions extracts all the columns that are factors).

MaxOrderIter

Maximum order of the interaction to construct.

Details

Constructs the contrasts for main effects and interaction for a dataframe of factors. For a general data frame the functions extracts all the factors first. The function constructs the contrasts for all the main effects and the interactions up to order MaxOrderIter.

Value

Groups

The groups resulting of combining the levels of all the factors.

Contrasts

A matrix of contrasts containing the contrasts that are associated to the main affects and interaction. The rows contain contrasts and the columns the groups to combine.

Effects

A factor describing which contrasts correspond to each effect.

Author(s)

Jose Luis Vicente-Villardon, Laura Vicente-Gonzalez

References

Bapat, R. B. (2012). Linear algebra and linear models. Springer Science & Business Media.

Examples

ConstructContrasts(wine[,1:2])

Distances for binary data

Description

Calculates distances among individuals for binary data. It is possible to introduce two matrices (x, y) and calculate the distances between them, or introduce only one matrix (x) and calculate the distances among individuals in the single matrix.

Usage

DistBinary(x, y = NULL, coefficient = "Simple_Matching",
  transformation = "sqrt(1-S)", euclidean = FALSE)

Arguments

x

A matrix containing binary data (0/1).

y

A matrix containing binary data different from x. By default it is NULL.

coefficient

Similarity coefficients for binary data. By default it is "Simple_Matching". See details.

transformation

Transformations of similarities into distances. By default it is "sqrt(1-S)". See details.

euclidean

Logical; if TRUE, applies Lingoes Euclidean correction via make_euclidean. By default it is FALSE.

Details

The function calculates coefficients of similarity among individuals for binary data and converts them into measures of distance.

Available coefficients (numbers instead of names can also be used): 1. Kulezynski, 2. Russell_and_Rao, 3. Jaccard, 4. Simple_Matching, 5. Anderberg, 6. Rogers_and_Tanimoto, 7. Sorensen_Dice_and_Czekanowski, 8. Sneath_and_Sokal, 9. Hamman, 10. Kulezynski2, 11. Anderberg2, 12. Ochiai, 13. S13, 14. Pearson_phi, 15. Yule, 16. Sorensen, 17. Dice.

Nine transformations of similarities into distances are available: 1. Identity, 2. 1-S, 3. sqrt(1-S), 4. -log(s), 5. 1/S-1, 6. sqrt(2(1-S)), 7. 1-(S+1)/2, 8. 1-abs(S), 9. 1/(S+1).

Value

A list of class "proximities" with:

Data

A matrix with initial data.

D

A matrix containing binary distances.

Coefficient

Character containing the name of the coefficient used.

Type

Character string indicating "binary".

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Gower, J. C. (2006). Similarity, dissimilarity and Distance, measures of. Encyclopedia of Statistical Sciences, 2nd ed., Volume 12. Wiley.

Examples

data(spidersb)
DD <- DistBinary(spidersb)

Distances for categorical data

Description

Calculates distances among individuals for categorical (nominal) variables using either the simple matching coefficient or the regularized Cramer's V association-corrected distance from dbrobust.

Usage

DistCategorical(x, coef = "cramer", weights = NULL, euclidean = FALSE)

Arguments

x

A data frame or matrix containing categorical variables. Columns are coerced to factors internally.

coef

Distance coefficient: "cramer" (default, corrects for redundancy among associated categorical variables) or "matching_coefficient".

weights

Optional numeric vector of observation weights of length nrow(x) when coef = "cramer".

euclidean

Logical; if TRUE, applies Lingoes Euclidean correction via make_euclidean. By default it is FALSE.

Value

A list of class "proximities" with:

Data

Data frame with the categorical variables.

D

Matrix of distances.

Coefficient

Character string indicating the coefficient used.

Type

Character string indicating "categorical".

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Grane, A., Salini, S., and Infante, G. (2026). New distances for mixed-type data able to cope with redundant information. AStA Advances in Statistical Analysis.

Examples

df_cat <- data.frame(
  A = factor(c("low", "med", "high", "low")),
  B = factor(c("yes", "no", "yes", "no"))
)
D <- DistCategorical(df_cat, coef = "cramer")

Distances among individuals with continuous data

Description

Calculates distances among individuals for continuous data. It is possible to introduce two matrices (x, y) and calculate the distances between the two sets of rows, or introduce only one matrix (x) and calculate the distances between its rows. Includes classical distances as well as standardized, correlation-based, and robust distances from dbrobust.

Usage

DistContinuous(x, y = NULL, coef = "Pythagorean", r = 1,
  alpha = 0.1, euclidean = FALSE)

Arguments

x

A matrix or data frame containing continuous data.

y

An optional matrix containing continuous data different from x (only supported for classical distances). By default it is NULL.

coef

Coefficient to calculate continuous distances. Options are: "Pythagorean", "Taxonomic", "City", "Minkowski", "Divergence", "dif_sum", "Camberra", "Bray_Curtis", "Soergel", "Ware_Hedges", "Gower", "Euclidean_Standardized", "Maximum", "Cosine", "Correlation", "Mahalanobis", "Robust_GV", and "Robust_MCD". By default "Pythagorean" is used.

r

Power parameter for Minkowski and Taxonomic distances. By default it is 1.

alpha

Trimming proportion used when coef = "Robust_GV" or "Robust_MCD". By default it is 0.1.

euclidean

Logical; if TRUE, applies Lingoes Euclidean correction via make_euclidean. By default it is FALSE.

Details

The function calculates distances among individuals for matrices of continuous data. Classical distances follow Gower (2006), whereas standardized, Mahalanobis, and robust trimmed distances ("Robust_GV" and "Robust_MCD") are computed through dbrobust.

Value

A list of class "proximities" with:

Data

A matrix with the initial data (x matrix).

D

The matrix of distances.

Coefficient

The coefficient used.

Type

Character string indicating "continuous".

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Boj, E. and Grane, A. (2024). The robustification of distance-based linear models: Some proposals. Socio-Economic Planning Sciences, 95, 101992.

Gower, J. C. (2006). Similarity, dissimilarity and Distance, measures of. Encyclopedia of Statistical Sciences, 2nd ed., Volume 12. Wiley.

Examples

data(wine)
X <- wine[, 4:21]
D <- DistContinuous(X)

Distances for mixed-type data

Description

Calculates distances among individuals for datasets combining continuous, binary, and categorical variables using Gower's distance or robust distance methods ("ggower" and "relms") from dbrobust.

Usage

DistMixed(x, coef = "gower", cont_vars = NULL, bin_vars = NULL,
  cat_vars = NULL, w = NULL, type = list(), cov_method = "gv",
  alpha = 0.1, euclidean = FALSE)

Arguments

x

A data frame containing mixed-type variables.

coef

Distance coefficient: "gower" (default), "ggower" (Generalized Gower robust distance), or "relms" (Related Metric Scaling robust distance).

cont_vars

Optional character vector of column names for continuous variables. Detected automatically if NULL.

bin_vars

Optional character vector of column names for binary variables. Detected automatically if NULL.

cat_vars

Optional character vector of column names for categorical variables. Detected automatically if NULL.

w

Optional numeric vector of variable weights (for "gower") or observation weights (for "ggower" and "relms").

type

Optional list specifying variable types passed to calculate_distances when coef = "gower".

cov_method

Robust covariance estimation method for continuous variables when coef is "ggower" or "relms": "gv" (Geometric Variability, default) or "mcd" (Minimum Covariance Determinant).

alpha

Trimming proportion for robust covariance estimation. By default it is 0.1.

euclidean

Logical; if TRUE, applies Lingoes Euclidean correction via make_euclidean. By default it is FALSE.

Value

A list of class "proximities" with:

Data

Data frame with the initial data.

D

Matrix of distances.

Coefficient

Character string indicating the coefficient used.

Type

Character string indicating "mixed".

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Boj, E. and Grane, A. (2024). The robustification of distance-based linear models: Some proposals. Socio-Economic Planning Sciences, 95, 101992.

Examples

df_mix <- data.frame(
  v1 = c(1.2, 3.4, 2.1, 5.0),
  v2 = c(0, 1, 1, 0),
  v3 = factor(c("A", "B", "A", "C"))
)
D <- DistMixed(df_mix, coef = "gower")

Unified interface for computing distance matrices

Description

Computes a distance matrix of class "proximities" by automatically detecting whether the input variables are continuous, binary, categorical, or mixed-type, or by dispatching to the specified distance function.

Usage

Distances(x, y = NULL,
  type = c("auto", "continuous", "binary", "categorical", "mixed"),
  coef = NULL, ...)

Arguments

x

A matrix or data frame of observations (rows) by variables (columns).

y

Optional second matrix of observations (only supported for "continuous" and "binary" types).

type

Type of data: "auto" (default), "continuous", "binary", "categorical", or "mixed".

coef

Distance coefficient passed to the underlying distance function (DistContinuous, DistBinary, DistCategorical, or DistMixed). If NULL, the default coefficient for the detected data type is used.

...

Additional arguments passed to the underlying distance function.

Value

An object of class "proximities" ready to be used as input in PERMANOVA.

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

Examples

data(wine)
D <- Distances(wine[, 4:21])

Initial transformation of a data matrix

Description

Initial transformation of data before the construction of a biplot (or any other technique).

Usage

IniTransform(X, InitTransform = "None", transform = "Standardize columns")

Arguments

X

Original Raw Data Matrix.

InitTransform

Previous transformation (Logarithm or logit).

transform

Transformation to use. See details.

Details

Possible Transformations are:

1.- "Raw Data": When no transformation is required.

2.- "Subtract the global mean": Eliminate an effect common to all the observations

3.- "Double centering" : Interaction residuals. When all the elements of the table are comparable. Useful for AMMI models.

4.- "Column centering": Remove the column means.

5.- "Standardize columns": Remove the column means and divide by its standard deviation.

6.- "Row centering": Remove the row means.

7.- "Standardize rows": Divide each row by its standard deviation.

8.- "Divide by the column means and center": The resulting dispersion is the coefficient of variation.

9.- "Normalized residuals from independence" for a contingency table.

The transformation can be provided to the function by using the string between the quotes or just the associated number.

The supplementary rows and columns are not used to calculate the parameters (means, standard deviations, etc). Some of the transformations are not compatible with supplementary data.

Value

X

Transformed data matrix.

Author(s)

Jose Luis Vicente-Villardon

References

M. J. Baxter (1995) Standardization and Transformation in Principal Component Analysis, with Applications to Archaeometry. Journal of the Royal Statistical Society. Series C (Applied Statistics). Vol. 44, No. 4 (1995) , pp. 513-527

Kroonenberg, P. M. (1983). Three-mode principal component analysis: Theory and applications (Vol. 2). DSWO press. (Chapter 6)

Examples

data(iris)
x=as.matrix(iris[,1:4])
x=IniTransform(x, transform=4)
x

Multivariate Analysis of Variance (MANOVA)

Description

Performs a Multivariate Analysis of Variance (MANOVA) based on matrix calculations. Is an extension of the function in the base package of R.

The function can take care of matrices of contrasts and matrices of linear combinations of variables in order to cope with complex designs.

Usage

MANOVA(Y, Group, C = NULL, M = NULL, Effects = NULL, InitialTransform = 5,
AddOnes = FALSE, Contrasts = TRUE)

Arguments

Y

A matrix containing the response variables.

Group

A factor containing the groups to compare (or the treatments).

C

A matrix of contrasts on the groups.

M

A matrix with the linear combinations of the variables to test.

Effects

A factor with the effects in the rows of C.

InitialTransform

Initial transformation of the response variables.

AddOnes

Add a column of ones to the design matrix. By default is false.

Contrasts

Should each contrast be tested separately?. By default is TRUE.

Details

Performs a general MANOVA to compare several groups or treatments. Additional contrasts can be tested using the contrasts matrix \bf{C}. This can also be separated into several effects.

Here we use an approach with matrices rather than te usual multivariate general linear model. Several designs can be obtained using the appropriate matrix of contrasts.

Value

An object of class "MANOVA" and "Canonical.Biplot".

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Amaro, I. R., Vicente-Villardon, J. L., & Galindo-Villardon, M. P. (2004). Manova Biplot para arreglos de tratamientos con dos factores basado en modelos lineales generales multivariantes. Interciencia, 29(1), 26-32.

Gabriel KR (1971) The biplot graphic display of matrices with application to principal component analysis. Biometrika 58(3):453-467.

Gabriel, K. R. (1995). MANOVA biplots for two-way contingency tables. WJ Krzanowski (Ed.), Recent advances in descriptive multivariate analysis, Oxford University Press, Toronto. 227-268.

Gower y Hand (1996): Biplots. Chapman & Hall.

Varas, M. J., Vicente-Tavera, S., Molina, E., & Vicente-Villardon, J. L. (2005). Role of canonical biplot method in the study of building stones: an example from Spanish monumental heritage. Environmetrics, 16(4), 405-419.

Santana, M. A., Romay, G., Matehus, J., Vcente-Villardon, J. L., & Demey, J. R. (2009). simple and low-cost strategy for micropropagation of cassava (Manihot esculenta Crantz). African Journal of Biotechnology, 8(16).

Examples


data(wine)
Y=as.matrix(wine[,4:21])
group=wine$Group
manvin=MANOVA(Y, Group=group)
summary(manvin)


Estimation of the MANOVA parameters.

Description

The function estimates the parameters of the MANOVA for a set of contrasts and a set of linear combinations of the dependent variables.

Usage

MANOVA.Estimation(Y, X, C, M)

Arguments

Y

The matrix of dependent variables.

X

The matrix of independent variables.

C

A matrix containing a set of contrasts on the columns of X.

M

A matrix containing a set of linear combinations of the columns of Y.

Details

The function estimates the parameters of the MANOVA for a set of contrasts contained in a matrix C and a set of linear combinations of the dependent variables in a matrix M. The function is actually used in a more general procedure called MANOVA.

Value

Returns the main results of the MANOVA.

Author(s)

Jose Luis Vicente-Villardon, Laura Vicente-Gonzalez

References

Seber, G. A. (2009). Multivariate observations (Vol. 252). John Wiley & Sons.


PERMANOVA: MANOVA based on distances

Description

The correct application of MANOVA needs normal and homoscedastic data and the number of variables to be much smaller than the number of individuals, but for many applications these conditions do not hold. To extend the application to such data, Anderson developed PERMANOVA. This non-parametric test based on distances uses permutations to approximate the sampling distribution of the test statistic.

Contrasts and Effects can be added to the calculations, and permutations can be executed in parallel for large datasets.

Usage

PERMANOVA(Distance, group, C = NULL, Effects = NULL, nperm = 1000,
  seed = NULL, CoordPrinc = FALSE, dimens = 2, PCoA = "Standard",
  ProjectInd = TRUE, tol = 1e-04, DatosIni = TRUE,
  PostHoc = "bonferroni", parallel = FALSE, cores = NULL)

Arguments

Distance

An object of class "proximities" (a list containing the data, the distance matrix D, and the coefficient used).

group

A factor containing the groups to compare.

C

Contrast matrix. By default it is NULL and the identity is used.

Effects

A factor with the effects in the rows of C. By default it is NULL and each row is considered as an effect.

nperm

Number of permutations to perform. By default it is 1000.

seed

Seed to start permutations. By default it is NULL.

CoordPrinc

Logical; should the principal coordinates be calculated? By default it is FALSE.

dimens

Number of dimensions to choose in the PCoA. By default it is 2.

PCoA

The type of Principal Coordinates Analysis: "Standard" or "Weighted". By default it is "Standard".

ProjectInd

Logical; show the row coordinates. By default it is TRUE.

tol

Numerical tolerance for eigenvalues. By default it is 1e-04.

DatosIni

Logical; whether to use the initial continuous data matrix for individual projection when available. By default it is TRUE.

PostHoc

Multiple testing correction method passed to p.adjust ("holm", "hochberg", "hommel", "bonferroni", "BH", "BY", "fdr", or "none"). By default it is "bonferroni".

parallel

Logical; if TRUE, permutations are run in parallel using the parallel package. By default it is FALSE.

cores

Number of CPU cores to use when parallel = TRUE. If NULL, a safe number of cores is selected automatically.

Details

The function performs a permutational multivariate analysis of variance (PERMANOVA) with optional contrast testing, multi-factor effect decomposition, parallel permutation execution, and Principal Coordinates Analysis (PCoA) biplot representation.

Value

An object of class "PERMANOVA" containing:

call

Matched call.

Title

Analysis title.

Type

Analysis type ("PERMANOVA").

Distances

Distance matrix between individuals.

C

Contrasts matrix.

Initial

List containing Global, Contrastes, and (optionally) Effects tables.

DistMuestral

Sample distribution of global F-statistics from permutations.

pvalue

Estimated p-value for global PERMANOVA.

ExplainedVariance

Explained variance by Principal Coordinates selected (when CoordPrinc = TRUE).

Inertias

Eigenvalue, explained variance, and cumulative explained variance.

MeanCoordinates

Mean coordinates by groups in PCoA.

Qualities

Representation qualities by groups.

CummulativeQualities

Cumulative representation qualities.

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Anderson, M. J. (2001). A new method for non-parametric multivariate analysis of variance. Austral Ecology, 26(1), 32–46.

Anderson, M. J. (2005). PERMANOVA: a FORTRAN computer program for permutational multivariate analysis of variance. Department of Statistics, University of Auckland, New Zealand.

Examples


data(wine)
X <- wine[, 4:21]
X <- IniTransform(X)
D <- DistContinuous(X)
perwine <- PERMANOVA(D, wine$Group)
perwine

C <- matrix(c(1, 1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1), nrow = 3, byrow = TRUE)
rownames(C) <- c("C1", "C2", "C3")
colnames(C) <- levels(wine$Group)

effects <- factor(c(1, 2, 3))
levels(effects) <- c("Origin", "Year", "Interaction")
perwine2 <- PERMANOVA(D, wine$Group, C = C, Effects = effects, CoordPrinc = TRUE)
summary(perwine2)


Estimation of the PERMANOVA parameters

Description

Estimation of the PERMANOVA parameters.

Usage

PERMANOVA.Estimation(D, X, C, Effects = NULL)

Arguments

D

A matrix of distances.

X

A matrix of independent variables.

C

Contrast matrix. By default it is null and the identity is used.

Effects

A factor with the effects in the rows of C. By default it is null and each row is considered as an effect.

Details

Estimation of the PERMANOVA parameters.

Value

Global

Significance for the global effect

Contrastes

Significance for each contrast

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Anderson, M. J. (2008). A new method for non-parametric multivariate analysis of variance. Austral ecology, 26(1):32–46.

Anderson, M. J. (2005). Permanova: a fortran computer program for permutational multivariate analysis of variance. Department of Statistics, University of Auckland, New Zealand, 24.


PERMANOVA from a matrix of distancies

Description

This function makes a PERMANOVA from distancies matrix and factor for groups.

Usage

PerMANOVA.Simple(D, grupo, nperm = 999, seed = NULL, C = NULL)

Arguments

D

A matrix containing the distances between individuals.

grupo

A factor containing the groups to compare.

nperm

Number of permutation that want to perform. By default it is 999.

seed

Seed to start permutations. By default it is null.

C

Contrast matrix. By default it is null.

Value

The PERMANOVA.Simple function create a list that return:

call

Function

nperm

Number of permutation.

Inicial

Containing:

* TSS -> Total sum of squares.

* BSS -> Between groups sum of squares.

* WSS -> Within groups sum of squares.

* glt -> Total degrees of freedom.

* glb -> Between groups degrees of freedom.

* glw -> Within groups degrees of freedom.

* Fexp -> Experimental F.

Fvals

F values of the permutation.

pval

Estimate p-valor for PERMANOVA.

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

References

Anderson, M. J. (2001). A new method for non-parametric multivariate analysis of variance. Austral ecology, 26(1):32–46.

Anderson, M. J. (2005). Permanova: a fortran computer program for permutational multivariate analysis of variance. Department of Statistics, University of Auckland, New Zealand, 24.

Examples

data(wine)
X = wine[,4:21]
Dist = DistContinuous (X)
PerMANOVA.Simple(Dist$D, wine$Group)
  

Post Hoc pairwise comparisons

Description

Creates a contrast C matrix of post hoc comparisons among groups.

Usage

PostHocComp(grupo)

Arguments

grupo

A factor containing the groups or treatments.

Details

Creates a contrast C matrix of post hoc comparisons among groups. The rows of the contrast matrix are not orthogonal.

Value

The PostHocComp function return a matrix to compare the levels of groups introduced.

Author(s)

Laura Vicente-Gonzalez and Jose Luis Vicente-Villardon

Examples

data(wine)
PostHocComp(wine$Group)

Simple Procrustes Analysis

Description

Simple Procrustes Analysis for two matrices

Usage

ProcrustesSimple(X, Y, centre = FALSE)

Arguments

X

Matrix of the first configuration.

Y

Matrix of the second configuration.

centre

Should the matrices be centered before the calculations?

Details

Orthogonal Procrustes Analysis for two configurations X and Y. The first configuration X is used as a reference and the second, Y, is transformed to match the reference as much as possible. X = s Y T + 1t +E = Z + E

Value

An object of class Procrustes.This has components:

X

First Configuration.

Y

Second Configuration.

Yrot

Second Configuration after the transformation.

T

Rotation Matrix.

t

Translation Vector.

s

Scale Factor.

rsss

Residual Sum of Squares.

fit

Goodness of fit as percent of explained variance.

correlations

Correlations among the columns of X and Z.

Author(s)

Jose Luis Vicente-Villardon

References

Ingwer Borg, I. & Groenen, P. J.F. (2005). Modern Multidimensional Scaling. Theory and Applications. Second Edition. Springer


Plots the principal coordinates of the group centers and the bootstrap confidence regions

Description

Plots the principal coordinates of the group centers and the bootstrap confidence regions.

Usage

## S3 method for class 'BootCanonAnalysis'
plot(x, A1 = 1, A2 = 2, centred = FALSE, confidence = 0.9,
PlotReplicates = TRUE, MeanCex = 1.5, MeanPch = 16, 
Title = "Bootstrap Canonical Analysis based on Distances", 
LabelMeans = TRUE, MeanLabels = NULL, MeanColors = NULL, SmartLabels = TRUE, 
BootstrapPlot = "el", PlotIndiv = FALSE, LabelInd = FALSE, IndLabels = NULL, 
IndColors = NULL, CexInd = 0.5, PchInd = 1, ConvexHullsInd = FALSE, ...)

Arguments

x

The object to plot.

A1

Dimension to plot on the X axis.

A2

Dimension to plot on the Y axis.

centred

Plot centers of the bootstrap regions.

confidence

Confidence for the bootstrap regions.

PlotReplicates

Should all the bootstrap replicates be plotted.

MeanCex

Size of the points and text representing the centroids of the groups.

MeanPch

Marks of the points and text representing the centroids of the groups.

Title

Main title of the graph.

LabelMeans

Should the groups be labelled?

MeanLabels

Labels for the group means.

MeanColors

Colors for the group means.

SmartLabels

Should the labels be placed in a smart way?

BootstrapPlot

Should the bootstrap regions be plotted?

PlotIndiv

Should the individuals be plotted?

LabelInd

Should individuals be labelled?

IndLabels

Labels for the individuals.

IndColors

Colors for the rows (individuals).

CexInd

Sizes for the rows (individuals).

PchInd

Marks for the rows (individuals).

ConvexHullsInd

Convex hulls containing the individuals of each group.

...

Any other graphical parameters.

Details

Plots the principal coordinates of the means of the groups with the confidence bootstrap region.

Value

The plot.

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon


Plot method for BootDisMANOVA objects

Description

Plots the principal coordinates representation of group centroids and individuals from a BootDisMANOVA object (when computed with CoordPrinc = TRUE).

Usage

## S3 method for class 'BootDisMANOVA'
plot(x, A1 = 1, A2 = 2, ShowAxes = FALSE, margin = 0.1, ShowBox = TRUE,
PlotGroups = TRUE, LabelGroups = TRUE, CexGroup = 1.5, PchGroup = 16,
ColorGroup = NULL, PlotInd = TRUE, LabelInd = TRUE, CexInd = 0.8,
PchInd = 3, ColorInd = NULL, WhatInds = NULL, IndLabels = NULL,
SmartLabels = TRUE, AddLegend = TRUE, LegendPos = "topright",
ConvexHulls = FALSE, PlotClus = TRUE, TypeClus = "ch",
ClustConf = 1, CexClustCenters = 1, ClustCenters = FALSE,
UseClusterColors = TRUE, ...)

Arguments

x

An object of class "BootDisMANOVA" obtained with CoordPrinc = TRUE.

A1

Dimension to be plotted on the horizontal axis (default is 1).

A2

Dimension to be plotted on the vertical axis (default is 2).

ShowAxes

Logical; if TRUE, coordinate axes are drawn.

margin

Proportion of margin added around the plot limits.

ShowBox

Logical; if TRUE, a box is drawn around the plot.

PlotGroups

Logical; if TRUE, group centroids are plotted.

LabelGroups

Logical; if TRUE, group centroids are labeled.

CexGroup

Character expansion size for group centroids.

PchGroup

Plotting symbol for group centroids.

ColorGroup

Vector of colors for group centroids.

PlotInd

Logical; if TRUE, individual points are plotted.

LabelInd

Logical; if TRUE, individual points are labeled.

CexInd

Character expansion size for individual points.

PchInd

Plotting symbol for individual points.

ColorInd

Vector of colors for individual points.

WhatInds

Logical or numeric vector indicating which individuals to display.

IndLabels

Optional character vector of labels for individuals.

SmartLabels

Logical; if TRUE, non-overlapping smart labels are used.

AddLegend

Logical; if TRUE, a legend for the groups is added.

LegendPos

Position of the legend (e.g., "topright").

ConvexHulls

Logical; if TRUE, convex hulls are drawn around each group.

PlotClus

Logical; if TRUE, cluster structures are plotted.

TypeClus

Type of cluster representation ("ch" for convex hull, "el" for ellipse, "st" for star).

ClustConf

Confidence level for cluster ellipses or convex hulls.

CexClustCenters

Character expansion size for cluster centers.

ClustCenters

Logical; if TRUE, cluster centers are drawn.

UseClusterColors

Logical; if TRUE, cluster colors are applied to individuals.

...

Additional graphical parameters passed to plot, points, and text.

Value

No return value, called for side effects (generates a plot).

See Also

BootDisMANOVA, PERMANOVA

Examples

D <- DistContinuous(iris[, 1:4])
res <- BootDisMANOVA(D, iris$Species, nB = 50, seed = 123, CoordPrinc = TRUE)
plot(res, LabelInd = FALSE)

Plots the results of a MANOVA Biplot

Description

Plots the results of a MANOVA Biplot.

Usage

## S3 method for class 'MANOVA'
plot(x, A1 = 1, A2 = 2, ScaleGraph = TRUE, PlotGroups = TRUE,
PlotVars = TRUE, PlotInd = TRUE, WhatInds = NULL, WhatVars = NULL, WhatGroups = NULL,
IndLabels = NULL, VarLabels = NULL, GroupLabels = NULL, AbbreviateLabels = FALSE,
LabelInd = TRUE, LabelVars = TRUE, LabelGroups = TRUE, CexGroup = 1, PchGroup = 16,
CexInd = 0.8, PchInd = 1, CexVar = 0.8, PchVar = 16, ColorGroups = NULL,
ColorVars = NULL, ColorInd = NULL, margin = 0.1, AddLegend = FALSE,
LegendPos = "topright", ShowAxes = FALSE, LabelAxes = TRUE, ShowBox = FALSE,
ShowTitle = TRUE, PlotCircle = TRUE, TypeCircle = "M", ConvexHulls = FALSE,
voronoi = TRUE, VoronoiColor = "black", mode = "a", TypeScale = "Complete",
ValuesScale = "Original", MinQualityVars = 0, dpg = 0, dp = 0, PredPoints = 0,
SmartLabels = FALSE, PlotClus = FALSE, TypeClus = "ch", ClustConf = 1,
ClustCenters = FALSE, UseClusterColors = TRUE, CexClustCenters = 1, ...)

Arguments

x

An object of class "MANOVA".

A1

Dimension for the first axis. 1 is the default.

A2

Dimension for the second axis. 2 is the default.

ScaleGraph

Rescale the coordinates to optimal matching.

PlotGroups

Should the group centers be plotted?

PlotVars

Should the variables be plotted?

PlotInd

Should the individuals be plotted?

WhatInds

What individuals should be plotted? A logical or index vector.

WhatVars

What variables should be plotted? A logical or index vector.

WhatGroups

What groups should be plotted? A logical or index vector.

IndLabels

Labels for the individuals.

VarLabels

Labels for the variables.

GroupLabels

Labels for the groups.

AbbreviateLabels

Should the labels be abbreviated for simplicity of the graph?

LabelInd

Should the individuals be labelled?

LabelVars

Should the variables be labelled?

LabelGroups

Should the groups be labelled?

CexGroup

Size of the points for groups.

PchGroup

Marker of the points for groups.

CexInd

Size of the points for individuals.

PchInd

Marker of the points for individuals.

CexVar

Size of the points for variables.

PchVar

Marker of the points for variables.

ColorGroups

User colors for the groups. Default colors will be used if NULL.

ColorVars

User colors for the variables. Default colors will be used if NULL.

ColorInd

User colors for the individuals. Default colors will be used if NULL.

margin

Margin for labels (as a proportion).

AddLegend

Should a legend be added?

LegendPos

Position of the legend.

ShowAxes

Should the axes be shown?

LabelAxes

Should the axes be labelled?

ShowBox

Should a box around the points be plotted?

ShowTitle

Should title be shown?

PlotCircle

Should the confidence regions for the groups be plotted?

TypeCircle

Type of confidence region: Univariate (U), Bonferroni (B), Multivariate (M) or Classical (C). Default is "M".

ConvexHulls

Should the convex hulls containing the individuals for each group be plotted?

voronoi

Should the Voronoi diagram with the prediction regions for each group be plotted?

VoronoiColor

Color for the Voronoi diagram.

mode

Mode of the biplot: "p", "a", "b", "h", "ah" and "s". See details.

TypeScale

Type of scale to use: "Complete", "StdDev" or "BoxPlot". See details.

ValuesScale

Values to show on the scale: "Original" or "Transformed".

MinQualityVars

Minimum quality of representation for a variable to be plotted.

dpg

A set of indices with the variables that will show projections of the group centers onto the variables.

dp

A set of indices with the variables that will show the projections of the individuals.

PredPoints

A vector with integers. The group centers listed in the vector are projected onto all the variables.

SmartLabels

Logical; if TRUE, non-overlapping smart labels are used.

PlotClus

Should the clusters be plotted?

TypeClus

Type of plot for the clusters ("ch" - Convex Hull, "el" - Ellipse or "st" - Star).

ClustConf

Percent of points included in the cluster. Only the ClustConf percent of the points nearest to the center will be used to calculate the cluster.

ClustCenters

Should the cluster centers be plotted?

UseClusterColors

Should the cluster colors be used in the plot?

CexClustCenters

Size of the cluster centers.

...

Any other graphical parameter.

Details

The function plots the results of a MANOVA Biplot. The coordinates for Groups, Individuals and Variables can be shown or not on the plot; each of the three can also be labeled separately. There are parameters to control the way each different set of coordinates is plotted and labeled.

There are several modes for plotting the biplot:

"p" .- Points (Rows and Columns are represented by points).

"a" .- Arrows (The traditional representation with points for rows and arrows for columns).

"b" .- The arrows for the columns are extended to both extremes of the plot and labeled outside the plot area.

"h" .- The arrows for the columns are extended to the positive extreme of the plot and labeled outside the plot area.

"ah" .- Same as arrows but labeled outside the plot area.

"s" .- The directions (or biplot axes) have a graded scale for prediction of the original values.

The TypeScale argument applies only to the "s" mode. There are three types:

"Complete" .- An equally spaced scale covering the whole range of the data is calculated.

"StdDev" .- Mean with one, two and three standard deviations.

"BoxPlot" .- Box-Plot like scale (Median, 25 and 75 percentiles, maximum and minimum values).

The ValuesScale argument applies only to the "s" mode and controls if the labels show the Original or Transformed values.

Some of the initial transformations are not compatible with some of the types of biplots and scales. For example, it is not possible to recover by projection the original values when you double centre the data. In that case you have the residuals for interaction and only the transformed values make sense.

Value

A plot is returned.

Author(s)

Jose Luis Vicente-Villardon, Laura Vicente-Gonzalez

References

Gabriel, K. R. (1972). Analysis of meteorological data by means of canonical decomposition and biplots. Journal of Applied Meteorology, 11(7), 1071-1077.

Amaro, I. R., Vicente-Villardon, J. L., & Galindo Villardon, M. P. (2004). Manova Biplot para arreglos de tratamientos con dos factores basado en modelos lineales generales multivariantes. Interciencia, 29(1), 26-32.

Sierra, C., Ruiz-Barzola, O., Menendez, M., Demey, J. R., & Vicente-Villardon, J. L. (2017). Geochemical interactions study in surface river sediments at an artisanal mining area by means of Canonical (MANOVA)-Biplot. Journal of Geochemical Exploration, 175, 72-81.

Examples


data(wine)
X <- wine[, 4:21]
manbip <- MANOVA(X, Group = wine$Group)
plot(manbip, TypeCircle = "B", voronoi = FALSE)


Plots the results of a MANOVA Biplot

Description

Plots the results of a MANOVA Biplot.

Usage

## S3 method for class 'MANOVA.Biplot'
plot(x, A1 = 1, A2 = 2, ScaleGraph = TRUE, PlotGroups = TRUE,
PlotVars = TRUE, PlotInd = TRUE, WhatInds = NULL, WhatVars = NULL, WhatGroups = NULL,
IndLabels = NULL, VarLabels = NULL, GroupLabels = NULL, AbbreviateLabels = FALSE,
LabelInd = TRUE, LabelVars = TRUE, LabelGroups = TRUE, CexGroup = 1, PchGroup = 16,
CexInd = 0.8, PchInd = 1, CexVar = 0.8, PchVar = 16, ColorGroups = NULL,
ColorVars = NULL, ColorInd = NULL, margin = 0.1, AddLegend = FALSE,
LegendPos = "topright", ShowAxes = FALSE, LabelAxes = TRUE, ShowBox = FALSE,
ShowTitle = TRUE, PlotCircle = TRUE, TypeCircle = "M", ConvexHulls = FALSE,
voronoi = TRUE, VoronoiColor = "black", mode = "a", TypeScale = "Complete",
ValuesScale = "Original", MinQualityVars = 0, dpg = 0, dp = 0, PredPoints = 0,
SmartLabels = FALSE, PlotClus = FALSE, TypeClus = "ch", ClustConf = 1,
ClustCenters = FALSE, UseClusterColors = TRUE, CexClustCenters = 1, ...)

Arguments

x

An object of class "MANOVA.Biplot".

A1

Dimension for the first axis. 1 is the default.

A2

Dimension for the second axis. 2 is the default.

ScaleGraph

Rescale the coordinates to optimal matching.

PlotGroups

Should the group centers be plotted?

PlotVars

Should the variables be plotted?

PlotInd

Should the individuals be plotted?

WhatInds

What individuals should be plotted? A logical or index vector.

WhatVars

What variables should be plotted? A logical or index vector.

WhatGroups

What groups should be plotted? A logical or index vector.

IndLabels

Labels for the individuals.

VarLabels

Labels for the variables.

GroupLabels

Labels for the groups.

AbbreviateLabels

Should the labels be abbreviated for simplicity of the graph?

LabelInd

Should the individuals be labelled?

LabelVars

Should the variables be labelled?

LabelGroups

Should the groups be labelled?

CexGroup

Size of the points for groups.

PchGroup

Marker of the points for groups.

CexInd

Size of the points for individuals.

PchInd

Marker of the points for individuals.

CexVar

Size of the points for variables.

PchVar

Marker of the points for variables.

ColorGroups

User colors for the groups. Default colors will be used if NULL.

ColorVars

User colors for the variables. Default colors will be used if NULL.

ColorInd

User colors for the individuals. Default colors will be used if NULL.

margin

Margin for labels (as a proportion).

AddLegend

Should a legend be added?

LegendPos

Position of the legend.

ShowAxes

Should the axes be shown?

LabelAxes

Should the axes be labelled?

ShowBox

Should a box around the points be plotted?

ShowTitle

Should title be shown?

PlotCircle

Should the confidence regions for the groups be plotted?

TypeCircle

Type of confidence region: Univariate (U), Bonferroni (B), Multivariate (M) or Classical (C).

ConvexHulls

Should the convex hulls containing the individuals for each group be plotted?

voronoi

Should the Voronoi diagram with the prediction regions for each group be plotted?

VoronoiColor

Color for the Voronoi diagram.

mode

Mode of the biplot: "p", "a", "b", "h", "ah" and "s".

TypeScale

Type of scale to use: "Complete", "StdDev" or "BoxPlot".

ValuesScale

Values to show on the scale: "Original" or "Transformed".

MinQualityVars

Minimum quality of representation for a variable to be plotted.

dpg

A set of indices with the variables that will show projections of the group centers onto the variables.

dp

A set of indices with the variables that will show the projections of the individuals.

PredPoints

A vector with integers. The group centers listed in the vector are projected onto all the variables.

SmartLabels

Logical; if TRUE, non-overlapping smart labels are used.

PlotClus

Should the clusters be plotted?

TypeClus

Type of cluster to plot (convex hull "ch", ellipse "el" or star "st").

ClustConf

Confidence level for the clusters (percentage plotted).

ClustCenters

Should the cluster centers be plotted?

UseClusterColors

Use cluster colors for individuals.

CexClustCenters

Size of the cluster centers.

...

Any other graphical parameter.

Details

The function plots the results of a MANOVA Biplot. The coordinates for Groups, Individuals and Variables can be shown or not on the plot; each of the three can also be labeled separately. There are parameters to control the way each different set of coordinates is plotted and labeled.

There are several modes for plotting the biplot:

"p" .- Points (Rows and Columns are represented by points).

"a" .- Arrows (The traditional representation with points for rows and arrows for columns).

"b" .- The arrows for the columns are extended to both extremes of the plot and labeled outside the plot area.

"h" .- The arrows for the columns are extended to the positive extreme of the plot and labeled outside the plot area.

"ah" .- Same as arrows but labeled outside the plot area.

"s" .- The directions (or biplot axes) have a graded scale for prediction of the original values.

The TypeScale argument applies only to the "s" mode. There are three types:

"Complete" .- An equally spaced scale covering the whole range of the data is calculated.

"StdDev" .- Mean with one, two and three standard deviations.

"BoxPlot" .- Box-Plot like scale (Median, 25 and 75 percentiles, maximum and minimum values).

The ValuesScale argument applies only to the "s" mode and controls if the labels show the Original or Transformed values.

Some of the initial transformations are not compatible with some of the types of biplots and scales. For example, it is not possible to recover by projection the original values when you double centre the data. In that case you have the residuals for interaction and only the transformed values make sense.

Value

A plot is returned.

Author(s)

Jose Luis Vicente Villardon, Laura Vicente Gonzalez

References

Gabriel, K. R. (1972). Analysis of meteorological data by means of canonical decomposition and biplots. Journal of Applied Meteorology, 11(7), 1071-1077.

Amaro, I. R., Vicente-Villardón, J. L., & Galindo Villardón, M. P. (2004). Manova Biplot para arreglos de tratamientos con dos factores basado en modelos lineales generales multivariantes. Interciencia, 29(1), 26-32.

Sierra, C., Ruíz-Barzola, O., Menéndez, M., Demey, J. R., & Vicente-Villardón, J. L. (2017). Geochemical interactions study in surface river sediments at an artisanal mining area by means of Canonical (MANOVA)-Biplot. Journal of Geochemical Exploration, 175, 72-81.

Examples


data(wine)
X <- wine[, 4:21]
manbip <- MANOVA(X, Group = wine$Group)
plot(manbip, TypeCircle = "U", voronoi = FALSE)


Plots the results of the PERMANOVA function

Description

Plots the principal coordinates representation of group centroids and individuals from a PERMANOVA object (computed with CoordPrinc = TRUE).

Usage

## S3 method for class 'PERMANOVA'
plot(x, A1 = 1, A2 = 2, ShowAxes = FALSE, margin = 0.1, ShowBox = TRUE,
PlotGroups = TRUE, LabelGroups = TRUE, CexGroup = 1.5, PchGroup = 16,
ColorGroup = NULL, PlotInd = FALSE, LabelInd = TRUE, CexInd = 0.8,
PchInd = 3, ColorInd = NULL, WhatInds = NULL, IndLabels = NULL,
SmartLabels = TRUE, AddLegend = TRUE, LegendPos = "topright",
ConvexHulls = FALSE, PlotClus = TRUE, TypeClus = "ch",
ClustConf = 1, CexClustCenters = 1, ClustCenters = FALSE,
UseClusterColors = TRUE, ...)

Arguments

x

An object of class "PERMANOVA" obtained with CoordPrinc = TRUE.

A1

Dimension for the first axis. 1 is the default.

A2

Dimension for the second axis. 2 is the default.

ShowAxes

Should the axes be shown?

margin

Margin around the plot limits (as a proportion).

ShowBox

Should a box around the plot be drawn?

PlotGroups

Should the group centers be plotted?

LabelGroups

Should the groups be labelled?

CexGroup

Size of the points for groups.

PchGroup

Marker of the points for groups.

ColorGroup

User colors for the groups. Default colors will be used if NULL.

PlotInd

Should the individuals be plotted?

LabelInd

Should the individuals be labelled?

CexInd

Size of the points for individuals.

PchInd

Marker of the points for individuals.

ColorInd

User colors for the individuals. Default colors will be used if NULL.

WhatInds

What individuals should be plotted? A logical or index vector.

IndLabels

Labels for the individuals.

SmartLabels

Should the labels be plotted using non-overlapping smart positioning?

AddLegend

Should a legend be added?

LegendPos

Position of the legend.

ConvexHulls

Should the convex hulls containing the individuals for each group be plotted?

PlotClus

Should the clusters be plotted?

TypeClus

Type of plot for the clusters ("ch" - Convex Hull, "el" - Ellipse or "st" - Star).

ClustConf

Confidence level for cluster ellipses or convex hulls.

CexClustCenters

Size of the cluster centers.

ClustCenters

Should the cluster centers be plotted?

UseClusterColors

Should the cluster colors be used for individuals?

...

Any other graphical parameter.

Details

Plots the principal coordinates of the group centers and, optionally, the projected individuals and cluster regions from a PERMANOVA analysis.

Value

No return value, called for side effects (generates a plot).

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

Examples


data(wine)
X <- wine[, 4:21]
X <- IniTransform(X)
D <- DistContinuous(X)
perwine <- PERMANOVA(D, wine$Group, CoordPrinc = TRUE)
plot(perwine)


Hunting Spiders Data

Description

Hunting spiders data transformed into Presence/Absence.

Usage

data("spiders")

Format

A data frame with 28 observations of presence/absence on the following 12 hunting spider species.

Alopacce

a factor with levels Absent Present of the species Alopecosa accentuata.

Alopcune

a factor with levels Absent Present of the species Alopecosa cuneata.

Alopfabr

a factor with levels Absent Present of the species Alopecosa fabrilis.

Arctlute

a factor with levels Absent Present of the species Arctosa lutetiana.

Arctperi

a factor with levels Absent Present of the species Arctosa perita.

Auloalbi

a factor with levels Absent Present of the species Aulonia albimana.

Pardlugu

a factor with levels Absent Present of the species Pardosa lugubris.

Pardmont

a factor with levels Absent Present of the species Pardosa monticola.

Pardnigr

a factor with levels Absent Present of the species Pardosa nigriceps.

Pardpull

a factor with levels Absent Present of the species Pardosa pullata.

Trocterr

a factor with levels Absent Present of the species Trochosa terricola.

Zoraspin

a factor with levels Absent Present of the species Zora spinimana.

Source

van der Aart, P. J. M., and Smeenk-Enserink, N. (1975) Correlations between distributions of hunting spiders (Lycos- idae, Ctenidae) and environmental characteristics in a dune area. Netherlands Journal of Zoology 25, 1-45.

Examples

data(spiders)

Hunting Spiders Data

Description

Hunting spiders data transformed into 1/0.

Usage

data("spidersb")

Format

A data frame with 28 observations of presence/absence of 12 hunting spider species

Alopacce

Presence/Absence of the species Alopecosa accentuata

Alopcune

Presence/Absence of the species Alopecosa cuneata

Alopfabr

Presence/Absence of the species Alopecosa fabrilis

Arctlute

Presence/Absence of the species Arctosa lutetiana

Arctperi

Presence/Absence of the species Arctosa perita

Auloalbi

Presence/Absence of the species Aulonia albimana

Pardlugu

Presence/Absence of the species Pardosa lugubris

Pardmont

Presence/Absence of the species Pardosa monticola

Pardnigr

Presence/Absence of the species Pardosa nigriceps

Pardpull

Presence/Absence of the species Pardosa pullata

Trocterr

Presence/Absence of the species Trochosa terricola

Zoraspin

Presence/Absence of the species Zora spinimana

Source

van der Aart, P. J. M., and Smeenk-Enserink, N. (1975) Correlations between distributions of hunting spiders (Lycos- idae, Ctenidae) and environmental characteristics in a dune area. Netherlands Journal of Zoology 25, 1-45.

Examples

data(spidersb)

Summarizes the results of a Bootstrap Manova based on distances

Description

Summarizes the results of a Bootstrap Manova based on distances.

Usage

## S3 method for class 'BootDisMANOVA'
summary(object, Latex = FALSE, ...)

Arguments

object

An object of class "BootDisMANOVA".

Latex

Should Latex tables be provided?

...

Any other parameter.

Details

Summarizes the results of a Bootstrap Manova based on distances including Latex tables.

Value

Prints the results.

Author(s)

Laura Vicente-Gonzalez, Jose Luis Vicente-Villardon

Examples

data(wine)
X = wine[,4:21]
D = DistContinuous (X)
bootwine=BootDisMANOVA(D, wine$Group)
summary(bootwine)


Wine data

Description

Comparison of young wines of Ribera de Duero and Toro.

Usage

data("wine")

Format

A data frame with 45 observations on the following 21 variables.

Year

A factor with levels 1986 1987

Origin

A factor with levels Ribera Toro

Group

A factor with levels R86 R87 T86 T87

A

Alcoholic content (percentage)

VA

volatil acidity - g acetic acid/l

TA

Total tritable acidity - g tartaric acid/l

FA

Fixed acidity - g tartaric acid/l

pH

pH

TPR

Total phenolics - g gallic acid /l - Folin

TPS

Total phenolics - Somers

V

Substances reactive to vanilin - mg catechin/l

PC

Procyanidins - mg cyanidin/l

ACR

Total Anthocyanins - mg/l - method 1

ACS

Total Anthocyanins - mg/l - methods 2

ACC

Malvidin - malvidin-3-glucoside mg/l

CI

Color density -

CI2

Color density 2

H

Wine Hue Color

I

Degree of Ionization - Percent

CA

Chemical Age

VPC

ratio V/PC

Details

Comparison of young wines of Ribera de Duero and Toro.

Source

Rivas-Gonzalo, J. C., Gutierrez, Y., Polanco, A. M., Hebrero, E., Vicente-Villardon, J. L., Galindo, P., & Santos-Buelga, C. (1993). Biplot analysis applied to enological parameters in the geographical classification of young red wines. American journal of enology and viticulture, 44(3), 302-308.

References

Rivas-Gonzalo, J. C., Gutierrez, Y., Polanco, A. M., Hebrero, E., Vicente-Villardon, J. L., Galindo, P., & Santos-Buelga, C. (1993). Biplot analysis applied to enological parameters in the geographical classification of young red wines. American journal of enology and viticulture, 44(3), 302-308.

Examples

data(wine)