View source: R/species_optimisation.R
plot_opt | R Documentation |
This function plots different species accumulation curves obtained through different optimisers in the optim_species
function.
plot_opt(optim_result, choices=c("Richness", "RRR", "CWE", "Shannon",
"Simpson", "SimpsonBeta", "Frequent", "SimpsonBeta_randSeed", "Random"))
optim_result |
Object returned from the |
choices |
select the optimisers from which the species accumulations curves are going to be plotted. The choices can be "Richness", "RRR", "CWE", "Shannon", "Simpson", "SimpsonBeta", "Frequent", "SimpsonBeta_randSeed", "Random" |
Line colours are assigned randomly on each run.
This function will return a plot of the species cumulative curves obtained by the different optimisers in the optim_species
function.
Greg R. Guerin
optim_species
#example with dune database from vegan
library(vegan)
data(dune)
example1 <- optim_species(dune, n.plt=15, frequent=FALSE, plot=FALSE)
plot_opt(example1)
plot_opt(example1, choices=c("Richness", "SimpsonBeta"))
#example with auplots database from ausplotsR
## Not run:
library(ausplotsR)
ausplotsdata <- get_ausplots(veg.PI=TRUE)
ausplotsPAdata <- species_table(ausplotsdata$veg.PI, m_kind="PA",
species_name="SN")
example2 <- optim_species(ausplotsPAdata, n.plt=5, iterations=5, plot=FALSE)
plot_opt(example2)
plot_opt(example2,
choices=c("RRR", "SimpsonBeta", "Frequent", "SimpsonBeta_randSeed"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.