View source: R/metric.plot.functions.R
densplot | R Documentation |
A simple density plot function for mertrics through scales
densplot(x=NULL, n=3, level = NULL)
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 |
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.