Questions tagged [vegan]

vegan is a package for use with R for the analysis of ecological communities, especially vegetation communities. It has tools for analyzing ecological diversity and for the multivariate analysis of communities (NMDS, pCCA, pRDA, etc.)

Vegan is an package that provides ordination methods, diversity analysis and other functions for community and vegetation ecologists.

Vegan contains many popular tools used in community ecology:

  • Diversity analysis: Shannon, Simpson, Fisher indices, Rényi diversities and Hill numbers.
  • Species abundance models: Fisher and Preston models, species abundance distributions.
  • Analysis of species richness: species accumulation curves, extrapolated richness.
  • Ordination: support and meta functions for NMDS, redundancy analysis, constrained correspondence analysis, constrained analysis of proximities (all three with partial analysis),
  • Support functions for ordination: dissimilarity indices, extended dissimilarities, Procrustes analysis, ordination diagnostics, permutation tests.
  • Ordination and environment: vector fitting, centroid fitting and smooth surface fitting, adding species scores as weighted averages, adding convex hull, SD ellipses, arrows etc. to ordination.
  • Dissimilarity analyses: ANOVA using dissimilarities, ANOSIM, MRPP, BIOENV, Mantel and partial Mantel tests.
  • Data standardization: Hellinger, Wisconsin, Chi-square, Beals smoothing.

Repositories

Vignettes

Other resources

Related tags

585 questions
0
votes
2 answers

navigating through complex r-objects with attr

I am performing a multivariate redundancy analysis in vegan with forward selection. At one point i want to extract the significant terms in the reduced model to form the right hand side of a new model. I know where these terms are located in the…
nouse
  • 3,315
  • 2
  • 29
  • 56
0
votes
1 answer

CCA adds variable levels into the graph as text

I'm trying to make a CCA plot of some environmental and macrofaunal data. My code looks like this: library(dplyr) library(vegan) library(ggvegan) all_abun <- abundance env_PLI <- environment env_vectors <- env_PLI[, c(1, 3:14)] abun_GEMAX <-…
Snowfaerie
  • 23
  • 1
  • 10
0
votes
2 answers

Combine dendrogram with bipartite graphs in R (tanglegram)

I am currently working on creating a tanglegram where species reared are on one side and substrate reared on is on the other side. However, I need the output to also be a tanglegram, having each side of the chart be the tips of a dendogram. I…
talker90
  • 79
  • 8
0
votes
0 answers

Unable to move/rotate adequately three-dimensional ordination plot using vegan3d and rgl

I'm carrying out the analysis of bird counts for my Master's thesis. After carrying out a NMDS analysis with the counts, using package vegan in R, I've found that my best option involves using three dimensions for the ordination. I've then…
0
votes
0 answers

Canonical analysis in R

I am using the following code to get the plot in canonical analysis in vegan package in R. The plot I get is for axes 1 and 2. How can I get a plot for axes 1 and 3. library (vegan) e.data= read.csv (file.choose()) e.data.ca <-…
M. arman
  • 11
  • 3
0
votes
0 answers

Attempting to add confidence ellipses to NMDS gives error "Error in cov.wt(X, W) : 'x' must contain finite values only"

I am attempting to add 95% confidence ellipse to an NMDS plot using the vegan package and function "ordiellipse" and keep getting the same error message. The ordination looks like this: microcosm_nmds <- ordinate(physeq = physeq_bac1, method =…
0
votes
1 answer

How to change graphical parameters of ordiellipse plot? Ordiellipse plot cuts off data

Ordiellipse plot, part of ellipses are shown in bottom left corner, no other information is shown I am trying to create an NMDS plot with bee species data grouped by the presence/absence of mines. In the following line of code beematrix=species…
0
votes
1 answer

Partial Canonical Correspondence Analysis in R

I am having issues with conducting a partial Canonical Correspondence Analysis (pCCA) in R. The data associated with code is quite extensive so I am unable to include it here. The following code produces the error below it. In the pCCA model, I am…
ecology
  • 606
  • 3
  • 9
  • 29
0
votes
0 answers

Ordination plot with vectors coded as centroids

In the vegan package, I tried to make a ordination plot with species as objects and environmental variables as vectors. However the environmental variables are regarded as centroids instead of factors. Strangely each data frame cell is seen as an…
Sam Vanbergen
  • 145
  • 3
  • 11
0
votes
0 answers

vegan package specaccum - Error in colSums(x) : 'x' must be numeric

I am trying to use a taxonomy file to run a species curve using the package vegan and the function specaccum, but I keep getting the error: Error in colSums(x) : 'x' must be numeric This file is a huge table, with species taxonomy in the first…
Rachel
  • 73
  • 7
0
votes
1 answer

"Error: Incorrect no.of dimensions" when plotting multivariate data in Vegan

I am getting the following error when I try to plot a model I created with vegdist in the vegan package of R. #Error in x$vectors[take, axes][ch, ] : incorrect number of dimensions I am trying to see if the species assemblage of animals differs…
0
votes
2 answers

problems with opening vegan

I Installed the package "vegan" but cant seem to run it. When I use the command library(vegan) I get this message . Any ideas? I normally just use R cmdr so excuse me if this is a silly question. Also: Is there any plugin to cmdr for NMDS…
Sus
  • 9
  • 1
0
votes
0 answers

vegan package installation error in R i386 3.1.0 version

I am using R i386 3.0.1 version. I want to use vegan package. When I typed library(vegan) I got the following message: Error in library (vegan): there is no package called ‘vegan’ I have used vegan package in R i386 3.0.1 version before, but…
M. arman
  • 11
  • 3
0
votes
0 answers

About using anova.cca() in vegan packages that show me :Error in terms.formula(formula,"Condition",data=data): 'data' argument is of the wrong type

Thanks to look at this question! I make Redundancy analysis in R with vegan package using two data sets(one is microbial species, another is environment variables e.g pH DOC ...). Code showing: mod<-…
Min.k
  • 1
  • 2
0
votes
4 answers

Make_network error in R Error - "veg_distance" not available for .C() for package "vegan"

I'm getting an error when running make_work from the "vegan" R package: net <- make_network(ps) Error in .C("veg_distance", x = as.double(x), nr = N, nc = ncol(x), d = double(N * : "veg_distance" not available for .C() for package "vegan" Here…