Description Usage Arguments Details Value Examples

Show correlation

1 2 |

`data` |
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 and not plotted. |

`labels` |
If TRUE, the correlation value will be added as text. |

`vjust` |
Will be passed on to ggplot2 as vertical justification of x-axis text. |

`text_size` |
Text size of the plot. |

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.

ggplot

1 2 3 4 5 6 7 8 9 10 | ```
metrics <- calculate_lsm(landscape, what = c("patch", "class"))
show_correlation(data = metrics, method = "pearson")
## Not run:
metrics <- calculate_lsm(landscape, what = c("patch", "class"))#'
correlations <- calculate_correlation(metrics)
show_correlation(data = correlations, method = "pearson")
## End(Not run)
``` |

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.