diff --git a/404.html b/404.html index 019a4c6..76c76d5 100644 --- a/404.html +++ b/404.html @@ -8,8 +8,8 @@
-rich_plus1 <- rowSums(resu$PAM[, -1]) + 1
+rich_plus1 <- rowSums(resu$PAM[, -1]) + 1
colfunc <- colorRampPalette(c("#fff5f0", "#fb6a4a", "#67000d"))
colors <- c("white", colfunc(max(rich_plus1)))
plot(resu$grid, border = "gray40",
diff --git a/articles/Adding-variables-to-a-presenceabsence-object.html b/articles/Adding-variables-to-a-presenceabsence-object.html
index 23252c5..eb336fd 100644
--- a/articles/Adding-variables-to-a-presenceabsence-object.html
+++ b/articles/Adding-variables-to-a-presenceabsence-object.html
@@ -8,8 +8,8 @@
Adding variables to a PresenceAbsence object • letsR
-
-
+
+
@@ -112,7 +112,9 @@ Adding variables in raster format
-PAM_env <- lets.addvar(PAM, r, fun = mean)
+PAM_env <- lets.addvar(PAM, r, fun = mean)
+#> Warning in lets.addvar(PAM, r, fun = mean): Reprojecting y to match the
+#> projection in x
The result is a presence absence matrix, where the last columns now include the raster values. Check the table:
@@ -223,7 +225,7 @@Adding variables in raster format
-bio1_mean +wc2.1_10m_bio_1_mean @@ -331,7 +333,7 @@Adding variables in raster format
@@ -875,44 +877,46 @@-267.3750 +26.67511 @@ -438,7 +440,7 @@ Adding variables in raster format
-262.2222 +26.38072 @@ -545,7 +547,7 @@ Adding variables in raster format
-264.6923 +26.75012 @@ -652,7 +654,7 @@ Adding variables in raster format
-276.4348 +27.59441 @@ -759,7 +761,7 @@ Adding variables in raster format
-276.6667 +27.69106 @@ -866,7 +868,7 @@ Adding variables in raster format
-236.8333 +24.01917 Adding variables in raster formatIf you do not want the coordinates and species included you can set the argument
onlyvar = TRUE
.+-climate <- lets.addvar(PAM, r, fun = mean, onlyvar = TRUE)
climate <- lets.addvar(PAM, r, fun = mean, onlyvar = TRUE) +#> Warning in lets.addvar(PAM, r, fun = mean, onlyvar = TRUE): Reprojecting y to +#> match the projection in x
head(climate)
-bio1_mean +wc2.1_10m_bio_1_mean |
---|
-267.3750 +26.67511 |
-262.2222 +26.38072 |
-264.6923 +26.75012 |
-276.4348 +27.59441 |
-276.6667 +27.69106 |
-236.8333 +24.01917 | -bio1_mean +wc2.1_10m_bio_1_mean | @@ -552,7 +554,7 @@-207.5278 +20.56603 |
-257.3056 +25.52649 |
-201.4074 +20.06813 |
-235.1530 +23.49658 |
-230.6512 +23.10110 |
-253.9167 +25.62387 |
-260.1406 +NA |
-236.0925 +24.17175 |
-220.2652 +21.86432 |
-248.1014 +24.93428 |
-238.5556 +23.34730 |
-247.5556 +24.96714 |
-189.9268 +18.98532 |
-214.6944 +21.59888 |
-146.5556 +14.30585 |
-249.4254 +NA |
-179.0449 +18.08854 |
-196.7222 +19.36243 |
-212.2639 +20.85050 |
-249.5278 +25.19995 |
-240.2558 +23.96218 |
-237.2083 +23.07010 |
-251.3197 +25.15378 |
-221.5556 +22.04672 |
-208.1575 +20.62165 |
-223.1641 +22.33336 |
-254.4805 +25.48131 |
-204.5278 +20.37571 |
-257.5273 +NA |
-255.5166 +25.59346 |
-257.8461 +NA |
-243.0564 +24.33024 |