Skip to content

Commit d06027d

Browse files
committed
Merge branch 'cran-3.0-9-fixes'
2 parents e8458c8 + 5f2076e commit d06027d

File tree

5 files changed

+31
-15
lines changed

5 files changed

+31
-15
lines changed

DESCRIPTION

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: Hmsc
22
Title: Hierarchical Model of Species Communities
33
Type: Package
4-
Version: 3.0-8
4+
Version: 3.0-9
55
Authors@R: c(person(given = "Gleb", family="Tikhonov", role="aut"),
66
person(given="Otso", family="Ovaskainen",
77
email="otso.ovaskainen@helsinki.fi",
@@ -13,9 +13,10 @@ Authors@R: c(person(given = "Gleb", family="Tikhonov", role="aut"),
1313
Description: Hierarchical Modelling of Species Communities (HMSC) is
1414
a model-based approach for analyzing community ecological data.
1515
This package implements it in the Bayesian framework with Gibbs
16-
Markov chain Monte Carlo (MCMC) sampling.
16+
Markov chain Monte Carlo (MCMC) sampling (Tikhonov et al. (2020)
17+
<doi:10.1111/2041-210X.13345>).
1718
License: GPL-3 | file LICENSE
18-
URL: https://www.helsinki.fi/en/researchgroups/statistical-ecology/hmsc/
19+
URL: https://www.helsinki.fi/en/researchgroups/statistical-ecology/hmsc
1920
BugReports: https://github.com/hmsc-r/HMSC/issues/
2021
Encoding: UTF-8
2122
LazyData: true

R/constructGradient.R

+3-4
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,13 @@
1717
#' \code{type = 2} sets the values of the non-focal variable to most likely value, given the value of focal variable,
1818
#' based on a linear relationship, and
1919
#' \code{type = 3} fixes to the value given.
20-
#' If all non-focal variables are of the identical \code{type} \code{1} or \code{2},
21-
#' a single number (\code{1} or \code{2}) can be given as an argument to
22-
#' \code{non.focalVariables}.
20+
#' As a shortcut, a single number \code{1} or \code{2} can be given as a type
21+
#' used for all non-focal variables.
2322
#' If a \code{non.focalVariable} is not listed, \code{type=2} is used as default.
2423
#' Note that if the focal variable is continuous, selecting type 2 for a non-focal categorical variable can cause abrupt changes in response.
2524
#'
2625
#' @seealso
27-
#' \code{\link{plotGradient}}, \code{\link{predict}}
26+
#' \code{\link{plotGradient}}, \code{\link{predict}}.
2827
#'
2928
#' @examples
3029
#' # Construct gradient for environmental covariate called 'x1'.

inst/NEWS.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Version 3.0-8
1+
Version 3.0-9
22
=============
33

44
### Installation
@@ -43,6 +43,18 @@ Version 3.0-8
4343
species. See GitHub
4444
[issue #44](https://github.com/hmsc-r/HMSC/issues/44).
4545

46+
* `constructGradient` argument `nonFocalVariables` accepts now a
47+
single number `1` or `2` as a shortcut of default type for all
48+
non-focal variables instead of requesting a list of types of all
49+
variables.
50+
51+
* `plotGradient` gained new argument `yshow` which is a single number
52+
or vector of numeric values that must be included on the
53+
*y*-axis. In general, the *y*-axis is scaled to show the plotted
54+
values, but `yshow = 0` will always show zero, even when this is not
55+
among plotted values, and `yshow = c(0,1)` will show both zero and
56+
one.
57+
4658
* `plotVariancePartition` defaults to plot the original terms instead
4759
of single contrast. For instance, only one component is shown for
4860
multilevel factors instead of showing each level separately. User
@@ -68,7 +80,9 @@ Version 3.0-8
6880

6981
* `plotGradient(..., showData = TRUE)` ignored data values in setting
7082
plot minimum. See GitHub
71-
[issue #48](https://github.com/hmsc-r/HMSC/issues/48).
83+
[issue #48](https://github.com/hmsc-r/HMSC/issues/48). The data
84+
values were not always shown with `measure = "S"` in quantitative
85+
linear models.
7286

7387
Version 3.0-6
7488
=============

man/Hmsc-package.Rd

+5-2
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,16 @@ Hierarchical Modelling of Species Communities (Hmsc) is a
8585
}
8686

8787
\section{Citing the Package}{
88-
Tikhonov, G., Opedal, O., Abrego, N., Lehikoinen, A., Ovaskainen, O., 2019. Joint species distribution modelling with HMSC-R. \emph{bioRxiv}
88+
Tikhonov, G., Opedal, O.H., Abrego, N., Lehikoinen, A., de Jonge,
89+
M.M.J, Oksanen, J. and Ovaskainen, O. (2020) Joint species
90+
distribution modelling with the R-package Hmsc. \emph{Methods in
91+
Ecology and Evolution} \bold{11,} 442--447. \doi{10.1111/2041-210X.13345}
8992
}
9093

9194
\seealso{
9295
Useful links:
9396
\itemize{
94-
\item \url{https://www.helsinki.fi/en/researchgroups/statistical-ecology/hmsc/}
97+
\item \url{https://www.helsinki.fi/en/researchgroups/statistical-ecology/hmsc}
9598
\item Report bugs at \url{https://github.com/hmsc-r/HMSC/issues/}
9699
}
97100

man/constructGradient.Rd

+3-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)