Description Usage Arguments Details Value Examples

View source: R/calculate_correlation.R

Calculate correlation

1 2 | ```
calculate_correlation(metrics, method = "pearson", diag = TRUE,
simplify = FALSE)
``` |

`metrics` |
Tibble with results of as returned by the landscapemetrics package. |

`method` |
Type of correlation. See |

`diag` |
If FALSE, values on the diagonal will be NA. |

`simplify` |
If TRUE and only one level is present, only a tibble is returned. |

The functions calculates the correlation between all metrics. In order to calculate correlations,
for the landscape level more than one landscape needs to be present. All input
must be structured as returned by the **landscapemetrics** package.

list

1 2 | ```
metrics <- calculate_lsm(landscape, what = c("patch", "class"))
calculate_correlation(metrics, method = "pearson")
``` |

landscapeecology/landscapemetrics documentation built on Sept. 10, 2019, 3:58 p.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.