plotVariancePartitioning: plotVariancePartitioning

plotVariancePartitioningR Documentation

plotVariancePartitioning

Description

Plots the results of variance partitioning of a Hmsc model produced by computeVariancePartitioning as a barplot

Usage

plotVariancePartitioning(
  hM,
  VP,
  cols = NULL,
  main = "Variance Partitioning",
  ...
)

Arguments

hM

a fitted Hmsc model object

VP

a Hmsc variance partitioning object produced by computeVariancePartitioning

cols

colors of the barplot

main

main title for the plot

...

additional parameters passed to the barplot function

Examples

# Plot how the explained variance of a previously fitted model is partitioned
VP = computeVariancePartitioning(TD$m)
plotVariancePartitioning(TD$m, VP)


Hmsc documentation built on Aug. 11, 2022, 5:11 p.m.