stackplot | R Documentation |
A simple stack density plot function for mertrics through scales
stackplot(x=NULL, level="class", metric=NULL)
x |
a table output from calc_lsm or extract_metrics |
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 |
metric |
a metric of choice to be ploted |
## Not run:
ls.nest <- nestedscales(r,p,b=c(1000,2000,3000))
ls.lsm <- calc_lsm(ls.nest, metric=c("shdi","sidi","pland"))
stackplot(ls.lsm, level="class", "pland")
stackplot(ls.lsm, level="landscape", "shdi")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.