Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/MichaelChirico/vegan int…
Browse files Browse the repository at this point in the history
…o MichaelChirico-patch-1
  • Loading branch information
gavinsimpson committed Mar 9, 2022
2 parents 413f8df + 1c9bd57 commit b6ea455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/plot.cca.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
biplabs <- ordiArrowTextXY(mul * g$regression, rownames(g$regression))
text(biplabs, rownames(g$regression), col = rcol)
}
if (!is.null(g$centroids) && all(!is.na(g$centroids)) && type !=
if (!is.null(g$centroids) && !anyNA(g$centroids) && type !=
"none") {
if (type == "text")
text(g$centroids, rownames(g$centroids), col = "blue")
Expand Down
2 changes: 1 addition & 1 deletion R/summary.cca.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## scaling is stored in return object so must be in numeric format
scaling <- scalingType(scaling = scaling, correlation = correlation,
hill = hill)
if (axes && length(display) && (all(!is.na(display)) && !is.null(display)))
if (axes && length(display) && !anyNA(display) && !is.null(display))
summ <- scores(object, scaling = scaling, choices = 1:axes, display = display,
...)
## scores() drops list to a matrix if there is only one item: workaround below.
Expand Down

0 comments on commit b6ea455

Please sign in to comment.