densplot: Plot metric density through scales

View source: R/metric.plot.functions.R

densplotR Documentation

Plot metric density through scales

Description

A simple density plot function for mertrics through scales

Usage

densplot(x=NULL, n=3, level = NULL)

Arguments

x

a table output from calc_lsm or extract_metrics

n

the number of classes to be included in the plot

level

the level from which metrics must be retrived. For the moment, only "landscape" or "class" are accepted. Users can filter the dataset or change properties of the ggplot output object

Examples

## Not run: 
ls.nest <- nestedscales(r,p,b=c(1000,2000,3000))
ls.lsm  <- calc_lsm(ls.nest, metric=c("shdi","sidi","pland"))
densplot(ls.lsm, level="class")
densplot(ls.lsm, level="landscape")

## End(Not run)

wilsonfrantine/landscapeDecoupler documentation built on Oct. 31, 2024, 3:45 a.m.