A shiny app to perform RDA with variable selection and create awesome figures and tables.
rdaWithStep is hosted at Shinyapps.io.
Briefly, the Monte Carlo permutation tests followed by backward, forward or bothward selection were used to determine which variable was contained in each variable set.
As vegan::ordistep described:
The basic functions for model choice in constrained ordination are add1.cca and drop1.cca. With these functions, ordination models can be chosen with standard R function step which bases the term choice on AIC. AIC-like statistics for ordination are provided by functions deviance.cca and extractAIC.cca (with similar functions for rda). Actually, constrained ordination methods do not have AIC, and therefore the step may not be trusted. This function provides an alternative using permutation P-values.
Function ordistep defines the model, scope of models considered, and direction of the procedure similarly as step. The function alternates with drop and add steps and stops when the model was not changed during one step. The - and + signs in the summary table indicate which stage is performed. It is often sensible to have Pout > Pin in stepwise models to avoid cyclic adds and drops of single terms
In general, there are two main scopes of RDA:
- determine the relationships of species and environment variables only;
- except determine the relationships of species and environment variables, the simple sites were also considered.
In this case, adding sample sites in the figure is not in my plan yet.
However, you are welcomed to commit any feature about this and even any other features in my repo on GitHub.
You are also welcomed to visit my Blog (in Chinese) or contact me by mail.
Click here. rdaWithStep is hosted at Shinyapps.io.
To make sure that you can control everything, you are welcomed to fork my code to your own repo (and leave me a star please).
Then what you can do is to oepn rdaWithStep.Rproj
file in RStudio, following open app.R
file, install all the packages which will be loaded.
At the least, click run.app
at the right top of the code editor panel, rdaWithStep will run locally.
- Reveal Input Matrice
- Perform RDA
- RDA without Selection
- RDA with Selection
- Variable Significance
- Monte Carlo permutation test
- Significance Table
- RDA plot
You tell me.
We gurantee that all your data won't be kept once you leave the Shiny app. There is no code and won't have any code to record your cilentID, uploaded file or any other data.