mvcorrplot function

Multivariate response correlation plot for bayesGAMfit objects

Multivariate response correlation plot for bayesGAMfit objects

Creates a correlation plot of the multivariate responses based on corrplot

## S4 method for signature 'bayesGAMfit' mvcorrplot(object, ...)

Arguments

  • object: model object of class bayesGAMfit
  • ...: Additional parameters passed to corrplot.mixed

Returns

corrplot object

Examples

require(MASS) sig <- matrix(c(1, 0.5, 0.5, 1), ncol=2) set.seed(123) Y <- mvrnorm(50, mu=c(-2, 2), Sigma=sig) dat <- data.frame(id = rep(1:5, each=10), y1 = Y[, 1], y2 = Y[, 2]) f <- bayesGAM(cbind(y1, y2) ~ 1, random = ~factor(id), data=dat, a = normal(c(0, 5)), chains = 1, iter = 500) mvcorrplot(f)

References

Taiyun Wei and Viliam Simko (2017). R package corrplot: Visualization of a Correlation Matrix (Version 0.84).

  • Maintainer: Samuel Thomas
  • License: GPL-3
  • Last published: 2022-03-17

Useful links