Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.1.1] bug fix + license & maintainer edits #410

Merged
merged 7 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ cmip5* # worldclim files
^_pkgdown\.yml$
^docs$
^pkgdown$
^LICENSE$
8 changes: 4 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: wallace
Version: 2.1.0
Date: 2023-09-25
Version: 2.1.1
Date: 2023-12-05
Title: A Modular Platform for Reproducible Modeling of Species Niches
and Distributions
Description: The 'shiny' application Wallace is a modular platform for
Expand All @@ -13,14 +13,14 @@ Description: The 'shiny' application Wallace is a modular platform for
website: <https://wallaceecomod.github.io/wallace/articles/tutorial-v2.html>.
Authors@R:
c(person("Jamie M.", "Kass", email = "[email protected]", role = "aut"),
person("Gonzalo E.", "Pinilla-Buitrago", email = "[email protected]", role = c("aut", "cre")),
person("Gonzalo E.", "Pinilla-Buitrago", email = "[email protected]", role = "aut"),
person("Andrea", "Paz", email = "[email protected]", role = "aut"),
person("Bethany A.", "Johnson", email = "[email protected]", role = "aut"),
person("Valentina", "Grisales-Betancur", email = "[email protected]", role = "aut"),
person("Dean", "Attali", email = "[email protected]", role = "aut"),
person("Matthew E.", "Aiello-Lammens", email = "[email protected]", role = "aut"),
person("Cory", "Merow", email = "[email protected]", role = "aut"),
person("Mary E.", "Blair", email = "[email protected]", role = "aut"),
person("Mary E.", "Blair", email = "[email protected]", role = c("aut", "cre")),
person("Robert P.", "Anderson", email = "[email protected]", role = "aut"),
person("Sarah I.", "Meenan", email = "[email protected]", role = "ctb"),
person("Olivier", "Broennimann", email = "[email protected]", role = "ctb"),
Expand Down
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export(clearAll)
export(create_module)
export(ecoClimate_getdata)
export(ecoClimate_select)
export(ecospat.plot.nicheDEV)
export(envs_ecoClimate)
export(envs_userEnvs)
export(envs_worldclim)
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wallace 2.1.1
=============
- Fixed bug in occ density grid & niche overlap
- Updated licensing
- Updated developers & pkg maintainer

wallace 2.1.0
=============
- Removed `rgeos` (package expiring)
Expand Down
6 changes: 3 additions & 3 deletions R/espace_nicheOv.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#' }
#'
#' @return A list of 4 elements if all is set to TRUE. Elements are overlap
#' (Schoener's D), USE (ecopstat.niche.dyn.index), equiv and simil.
#' (Schoener's D), USE (ecospat.niche.dyn.index), equiv and simil.
#' @author Jamie Kass <jamie.m.kass@@gmail.com>
#' @author Olivier Broennimann <olivier.broennimann@@unil.ch>
#' @seealso \code{\link{espace_pca}} \code{\link{espace_occDens}}
Expand All @@ -80,15 +80,15 @@ espace_nicheOv <- function(z1, z2, iter = 100, equivalency = FALSE,
if (equivalency == TRUE) {
smartProgress(logger, message = "Calculating niche equivalency...", {
nicheOv$equiv <- ecospat::ecospat.niche.equivalency.test(
z1, z2, iter, overlap.alternative = "higher"
z1, z2, rep = 100, overlap.alternative = "higher"
)
})
}

if (similarity == TRUE) {
smartProgress(logger, message = "Calculating niche similarity", {
nicheOv$simil <- ecospat::ecospat.niche.similarity.test(
z1, z2, iter, overlap.alternative = "higher", rand.type = 1
z1, z2, rep = 100, overlap.alternative = "higher", rand.type = 1
)
})
}
Expand Down
2 changes: 1 addition & 1 deletion R/espace_occDens.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
#' }
#'
#' @return Returns a list of 2 lists (one for each species). Each list is an
#' ecospat noche object that contains 10 species specific slots with
#' ecospat niche object that contains 10 species specific slots with
#' information outputed by ecospat::grid.clim.dyn. z.uncor is the density of
#' occurrence of the species and z.cor the occupancy of the environment by
#' the species. It has the input parameters as individual slots.
Expand Down
44 changes: 44 additions & 0 deletions R/helper_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,50 @@ remEnvsValsNA <- function(occs, occsEnvsVals, spN, logger) {
})
}

####################### #
# ESPACE #
####################### #
#' @title ecospat.plot.nicheDEV
#' @description For internal use. Plot occ density
#' @param z A gridclim object for the species distribution created by ecospat.grid.clim.dyn()/espace_occDens().
#' @param title A title for the plot.
#' @param name.axis1 A label for the first axis.
#' @param name.axis2 A label for the second axis.
#' @param cor Correct the occurrence densities of the species by the prevalence of the environments in its range (TRUE = yes, FALSE = no).
#' @keywords internal
#' @export
ecospat.plot.nicheDEV <- function(z, title = "", name.axis1 = "Axis 1", name.axis2 = "Axis 2", cor = FALSE) {
if (is.null(z$y)) {
R <- length(z$x)
x <- z$x
xx <- sort(rep(1:length(x), 2))
if (cor == FALSE)
y1 <- z$z.uncor/max(z$z.uncor)
if (cor == TRUE)
y1 <- z$z.cor/max(z$z.cor)
Y1 <- z$Z/max(z$Z)
yy1 <- sort(rep(1:length(y1), 2))[-c(1:2, length(y1) * 2)]
YY1 <- sort(rep(1:length(Y1), 2))[-c(1:2, length(Y1) * 2)]
plot(x, y1, type = "n", xlab = name.axis1, ylab = "density of occurrence")
graphics::polygon(x[xx], c(0, y1[yy1], 0, 0), col = "grey")
graphics::lines(x[xx], c(0, Y1[YY1], 0, 0))
}
if (!is.null(z$y)) {
if (cor == FALSE)
terra::plot(z$z.uncor,col=grDevices::gray(100:0 / 100),legend=FALSE, xlab = name.axis1,
ylab = name.axis2,mar = c(3.1,3.1,2.1,3.1))
if (cor == TRUE)
terra::plot(z$z.cor,col=grDevices::gray(100:0 / 100),legend=FALSE, xlab = name.axis1,
ylab = name.axis2,mar = c(3.1,3.1,2.1,3.1))
terra::contour(
z$Z, add = TRUE, levels = stats::quantile(z$Z[z$Z > 0], c(0, 0.5)),
drawlabels = FALSE, lty = c(1, 2)
)
}
title(title)
}
# end of espace. BAJ added 10/31/2023 after ecospat.plot.niche() from ecospat 4.0.0 wasn't working

####################### #
# VISUALIZE & TRANSFER #
####################### #
Expand Down
1 change: 1 addition & 0 deletions R/penvs_bgExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#' @return A SpatialPolygons object that contains all occurrences from occs
#' @author Jamie Kass <jamie.m.kass@@gmail.com>
#' @author Gonzalo E. Pinilla-Buitrago <gepinillab@@gmail.com>
#' @author Bethany A. Johnson <bjohnso005@@citymail.cuny.edu>
# @note

#' @seealso \code{\link{penvs_userBgExtent}}, \code{\link{penvs_drawBgExtent}},
Expand Down
1 change: 1 addition & 0 deletions R/penvs_drawBgExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

#' @author Jamie Kass <jamie.m.kass@@gmail.com>
#' @author Gonzalo E. Pinilla-Buitrago <gepinillab@@gmail.com>
#' @author Bethany A. Johnson <bjohnso005@@citymail.cuny.edu>
# @note
#' @seealso \code{\link{penvs_userBgExtent}}, \code{\link{penvs_bgExtent}},
#' \code{\link{penvs_bgMask}} , \code{\link{penvs_bgSample}}
Expand Down
1 change: 1 addition & 0 deletions R/penvs_userBgExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#' @author Jamie Kass <jamie.m.kass@@gmail.com>
#' @author Gonzalo E. Pinilla-Buitrago <gepinillab@@gmail.com>
#' @author Andrea Paz <paz.andreita@@gmail.com>
#' @author Bethany A. Johnson <bjohnso005@@citymail.cuny.edu>
# @note

#' @seealso \code{\link{penvs_drawBgExtent}}, \code{\link{penvs_bgExtent}},
Expand Down
1 change: 1 addition & 0 deletions R/xfer_draw.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#' larger than specified if drawBgBuf > 0.

#' @author Gonzalo Pinilla <gepinillab@@gmail.com>
#' @author Bethany A. Johnson <bjohnso005@@citymail.cuny.edu>
# @note
#' @seealso \code{\link{xfer_userEnvs}}
#' @export
Expand Down
1 change: 1 addition & 0 deletions R/xfer_userExtent.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#' @author Jamie Kass <jamie.m.kass@@gmail.com>
#' @author Gonzalo E. Pinilla-Buitrago <gepinillab@@gmail.com>
#' @author Andrea Paz <paz.andreita@@gmail.com>
#' @author Bethany A. Johnson <bjohnso005@@citymail.cuny.edu>
#' @seealso \code{\link{penvs_drawBgExtent}}, \code{\link{penvs_bgExtent}},
#' \code{\link{penvs_bgMask}} , \code{\link{penvs_bgSample}}
#' @export
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![R-CMD-check](https://github.com/wallaceEcoMod/wallace/workflows/R-CMD-check/badge.svg)](https://github.com/wallaceEcoMod/wallace/actions) [![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![CRAN version](http://www.r-pkg.org/badges/version/wallace)](https://CRAN.R-project.org/package=wallace) [![downloads](https://cranlogs.r-pkg.org:443/badges/grand-total/wallace?color=orange)](https://cranlogs.r-pkg.org:443/badges/grand-total/wallace?color=orange)

# Wallace (v2.1.0)
# Wallace (v2.1.1)

*Wallace* is a modular platform for reproducible modeling of species niches and distributions, written in R. The application guides users through a complete analysis, from the acquisition of data to visualizing model predictions on an interactive map, thus bundling complex workflows into a single, streamlined interface.

Expand All @@ -27,7 +27,7 @@ run_wallace()
Please make sure you have installed the latest versions of both R (<a href= "https://cran.r-project.org/bin/macosx/" target="_blank">Mac OS</a>, <a href= "https://cran.r-project.org/bin/windows/base/" target="_blank">Windows</a>) and RStudio (<a href= "https://posit.co/download/rstudio-desktop/" target="_blank">Mac OS / Windows</a>: choose the free version).

#### How to run Maxent with maxent.jar
*Wallace* v2.1.0 includes two options to run Maxent models: maxnet and maxent.jar. The former, which is an R implementation and fits the model with the package `glmnet`, is now the default and does not require the package `rJava` (see Phillips et al. 2017). The latter, which is the Java implementation, runs the `maxent()` function in the package `dismo`. This function requires the user to place the `maxent.jar` file in the `/java` directory of the `dismo` package root folder. You can download Maxent <a href="https://biodiversityinformatics.amnh.org/open_source/maxent/" target="_blank">here</a>, and locate `maxent.jar`, which is the Maxent program itself, in the downloaded folder. You can find the directory path to `dismo/java` by running `system.file('java', package="dismo")` at the R console. Simply copy `maxent.jar` and paste it into this folder. If you try to run Maxent in *Wallace* without the file in place, you will get a warning message in the log window and Maxent will not run.
*Wallace* v2.1.1 includes two options to run Maxent models: maxnet and maxent.jar. The former, which is an R implementation and fits the model with the package `glmnet`, is now the default and does not require the package `rJava` (see Phillips et al. 2017). The latter, which is the Java implementation, runs the `maxent()` function in the package `dismo`. This function requires the user to place the `maxent.jar` file in the `/java` directory of the `dismo` package root folder. You can download Maxent <a href="https://biodiversityinformatics.amnh.org/open_source/maxent/" target="_blank">here</a>, and locate `maxent.jar`, which is the Maxent program itself, in the downloaded folder. You can find the directory path to `dismo/java` by running `system.file('java', package="dismo")` at the R console. Simply copy `maxent.jar` and paste it into this folder. If you try to run Maxent in *Wallace* without the file in place, you will get a warning message in the log window and Maxent will not run.

### Potential Issues

Expand Down
12 changes: 7 additions & 5 deletions inst/shiny/Rmd/text_about.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ output: html_document

<img src="logo.png" alt="logo" style="width: 150px; float:right; padding:10px;"/>

Welcome to *Wallace*, a flexible application for reproducible ecological modeling, built for community expansion. The current version of *Wallace* (v2.1.0) steps the user through a full niche/distribution modeling analysis, from data acquisition to visualizing results.
Welcome to *Wallace*, a flexible application for reproducible ecological modeling, built for community expansion. The current version of *Wallace* (v2.1.1) steps the user through a full niche/distribution modeling analysis, from data acquisition to visualizing results.

The application is written in `R` with the web app development package `shiny`. Please find the stable version of *Wallace* on <a href="https://CRAN.R-project.org/package=wallace" target="_blank">CRAN</a>, and the development version on <a href="https://github.com/wallaceEcoMod/wallace" target="_blank">Github</a>. We also maintain a *Wallace* <a href="https://wallaceecomod.github.io/" target="_blank">website</a> that has some basic info, links, and will be updated with tutorial materials in the near future.

Expand Down Expand Up @@ -47,15 +47,17 @@ For more information and relevant links see our <a href="https://wallaceecomod.g

*The following webinar was part of "ENM 2020", a free online course on ecological niche modeling, organized by Town Peterson. The full series can be found on YouTube: <a href="https://www.youtube.com/playlist?list=PLhEJuWmv8Jf67qSdifDvgOk5DOJsNNiam" target="_blank">ENM 2020</a>.*

Kass, J.M. and G.E. Pinilla-Buitrago. 18 May 2020. “Wallace Ecological Modeling Application: flexible and reproducible modeling of species’ niches and distributions built for community expansion.” ENM 2020: Online course in ecological niche modeling (Peterson, A. T. editor), Week 19, Talk 2. <a href="https://youtu.be/kWNyNd2X1uo" target="_blank">Watch on YouTube</a>.
Kass, J.M. and G.E. Pinilla-Buitrago. 18 May 2020. “Wallace Ecological Modeling Application: flexible and reproducible modeling of species’ niches and distributions built for community expansion.” ENM 2020: Online course in ecological niche modeling (Peterson, A. T. editor), <a href="https://youtu.be/kWNyNd2X1uo" target="_blank">Week 19, Talk 2</a>.

*The following webinar was the "37th Global Online Biodiversity Informatics Seminar" in the Biodiversity Informatics Training Curriculum organized by Town Peterson.*

Kass, J. M. 9 May 2018. "WALLACE: A flexible platform for reproducible modeling of species niches and distributions built for community expansion." Broadcast from the City College of New York, City University of New York. <a href="https://www.youtube.com/watch?v=00CSd9vx2CE&feature=youtu.be" target="_blank">Watch on YouTube</a>.
Kass, J. M. 9 May 2018. "WALLACE: A flexible platform for reproducible modeling of species niches and distributions built for community expansion." Broadcast from the City College of New York, City University of New York. <a href="https://www.youtube.com/watch?v=00CSd9vx2CE&feature=youtu.be" target="_blank">Global Online Seminar #37 - Wallace</a>.

*The following webinar was part of the "Modelado de Distribuciones Potenciales" series, organized by Angela Cuervo.*
*Para seminarios en español, los siguientes seminarios fueron organizados por Angela Cuervo como parte de la serie Modelado de Distribuciones Potenciales y Analisis Espaciales.*

Anderson, R. P. 21 May 2018. "El software Wallace para modelar nichos y distribuciones: Un coche con motor R, volante de ratón y cerebro de humano." Broadcast from the City College of New York, City University of New York. <a href="https://www.youtube.com/watch?v=0652g9PDKp4" target="_blank">Watch on YouTube</a>.
Paz, A. 3 October 2023. "Wallace EcoMod: Nuevas funcionalidades para aplicaciones en conservación". <a href="https://www.youtube.com/live/_X5fXqRJ_EY?si=xHbQSw9dnvQemqAJ" target="_blank">Seminarios 2023 - Wallace EcoMod</a>

Anderson, R. P. 21 May 2018. "El software Wallace para modelar nichos y distribuciones: Un coche con motor R, volante de ratón y cerebro de humano." Broadcast from the City College of New York, City University of New York. <a href="https://www.youtube.com/watch?v=0652g9PDKp4" target="_blank">Analisis espaciales: 2017 - El software Wallace</a>.

*For more videos, check out the <a href="https://www.youtube.com/channel/UCDSLCE5bmw12B7oqmlKk7rg" target="_blank">Wallace EcoMod YouTube channel</a>.*

Expand Down
2 changes: 1 addition & 1 deletion inst/shiny/Rmd/text_intro_tab.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ output: html_document

#### WORKFLOW

*Wallace* (v2.1.0) currently includes ten components, or steps of a possible workflow. Each component includes two or more modules, which are possible analyses for that step.
*Wallace* (v2.1.1) currently includes ten components, or steps of a possible workflow. Each component includes two or more modules, which are possible analyses for that step.

**Components:**

Expand Down
2 changes: 1 addition & 1 deletion inst/shiny/Rmd/userReport_intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ knit_engines$set(asis = function(options) {
knitr::opts_chunk$set(message = FALSE, warning = FALSE, eval = FALSE)
```

Please find below the R code history from your *Wallace* v2.1.0 session.
Please find below the R code history from your *Wallace* v2.1.1 session.

You can reproduce your session results by running this R Markdown file in RStudio.

Expand Down
4 changes: 2 additions & 2 deletions inst/shiny/modules/espace_occDens.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ espace_occDens_module_server <- function(input, output, session, common) {
mSp <- curSp()
}
req(spp[[mSp]]$occDens)
ecospat::ecospat.plot.niche(spp[[mSp]]$occDens[[sp1]], title = spName(sp1))
ecospat::ecospat.plot.niche(spp[[mSp]]$occDens[[sp2]], title = spName(sp2))
ecospat.plot.nicheDEV(spp[[mSp]]$occDens[[sp1]], title = spName(sp1))
ecospat.plot.nicheDEV(spp[[mSp]]$occDens[[sp2]], title = spName(sp2))
})
}

Expand Down
4 changes: 2 additions & 2 deletions inst/shiny/modules/espace_occDens.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ espace_occDens_{{multAbr}} <- espace_occDens(
pca = espace_pca_{{multAbr}})
# Plots
graphics::par(mfrow = c(1,2))
ecospat::ecospat.plot.niche(espace_occDens_{{multAbr}}[["{{spName1}}"]],
ecospat.plot.nicheDEV(espace_occDens_{{multAbr}}[["{{spName1}}"]],
title = "{{spName1}}")
ecospat::ecospat.plot.niche(espace_occDens_{{multAbr}}[["{{spName2}}"]],
ecospat.plot.nicheDEV(espace_occDens_{{multAbr}}[["{{spName2}}"]],
title = "{{spName2}}")
```
2 changes: 1 addition & 1 deletion inst/shiny/modules/penvs_bgExtent.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component: "penvs"
short_name: "Select Study Region"
long_name: "Select Study Region by Extent"
authors: "Jamie M. Kass, Bruno Vilela, Robert P. Anderson"
authors: "Jamie M. Kass, Bruno Vilela, Bethany A. Johnson, Robert P. Anderson"
package: [sp, sf]
2 changes: 1 addition & 1 deletion inst/shiny/modules/penvs_drawBgExtent.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component: "penvs"
short_name: "Draw Study Region"
long_name: "Draw Study Region"
authors: "Gonzalo E. Pinilla-Buitrago, Jamie M. Kass, Bruno Vilela, Robert P. Anderson"
authors: "Gonzalo E. Pinilla-Buitrago, Jamie M. Kass, Bruno Vilela, Bethany A. Johnson, Robert P. Anderson"
package: []
2 changes: 1 addition & 1 deletion inst/shiny/modules/penvs_userBgExtent.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component: "penvs"
short_name: "User-specified Study Region"
long_name: "User-specified Study Region"
authors: "Jamie M. Kass, Bruno Vilela, Robert P. Anderson"
authors: "Jamie M. Kass, Bruno Vilela, Bethany A. Johnson, Robert P. Anderson"
package: []
2 changes: 1 addition & 1 deletion inst/shiny/modules/xfer_area.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component: "xfer"
short_name: "Transfer to New Extent"
long_name: "Transfer to New Extent"
authors: "Jamie M. Kass, Bruno Vilela, Gonzalo E. Pinilla-Buitrago, Robert P. Anderson"
authors: "Jamie M. Kass, Bruno Vilela, Gonzalo E. Pinilla-Buitrago, Bethany A. Johnson, Robert P. Anderson"
package: [dismo]
2 changes: 1 addition & 1 deletion inst/shiny/modules/xfer_time.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component: "xfer"
short_name: "Transfer to New Time"
long_name: "Transfer to New Time"
authors: "Jamie M. Kass, Bruno Vilela, Gonzalo E. Pinilla-Buitrago, Robert P. Anderson"
authors: "Jamie M. Kass, Bruno Vilela, Gonzalo E. Pinilla-Buitrago, Bethany A. Johnson, Robert P. Anderson"
package: [dismo]
2 changes: 1 addition & 1 deletion inst/shiny/modules/xfer_user.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
component: "xfer"
short_name: "Transfer to User Environments"
long_name: "Transfer to User Environments"
authors: "Gonzalo E. Pinilla-Buitrago, Jamie M. Kass, Robert P. Anderson"
authors: "Gonzalo E. Pinilla-Buitrago, Jamie M. Kass, Bethany A. Johnson, Robert P. Anderson"
package: [dismo]
4 changes: 2 additions & 2 deletions inst/shiny/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,8 @@ function(input, output, session) {
mSp <- curSp()
}
req(spp[[mSp]]$occDens)
ecospat::ecospat.plot.niche(spp[[mSp]]$occDens[[sp1]], title = spName(sp1))
ecospat::ecospat.plot.niche(spp[[mSp]]$occDens[[sp2]], title = spName(sp2))
ecospat.plot.nicheDEV(spp[[mSp]]$occDens[[sp1]], title = spName(sp1))
ecospat.plot.nicheDEV(spp[[mSp]]$occDens[[sp2]], title = spName(sp2))
dev.off()
}
)
Expand Down
29 changes: 29 additions & 0 deletions man/ecospat.plot.nicheDEV.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading