
Plot residual correlations based on latent factors
Source:R/mvgam_residcor-class.R
plot.mvgam_residcor.Rd
Plot residual correlation estimates from Joint Species Distribution
(jsdgam
) or dynamic factor (mvgam
) models
Usage
# S3 method for mvgam_residcor
plot(x, cluster = FALSE, ...)
Arguments
- x
list
object of classmvgam_residcor
resulting from a call toresidual_cor(..., summary = TRUE)
- cluster
Logical. Should the variables be re-arranged within the plot to group the correlation matrix into clusters of positive and negative correlations? Defaults to
FALSE
- ...
ignored
Details
This function plots the significant residual correlations from a
mvgam_residcor
object, whereby the posterior mean (if robust = FALSE
)
or posterior median (if robust = TRUE
) correlations are shown
only those correlations whose credible interval does not contain zero. All other
correlations are set to zero in the returned plot