mshapviz: Concatenates "shapviz" Objects

View source: R/shapviz.R

mshapvizR Documentation

Concatenates "shapviz" Objects

Description

This function combines a list of "shapviz" objects to an object of class "mshapviz". The elements can be named.

Usage

mshapviz(object, ...)

Arguments

object

List of "shapviz" objects to be concatenated.

...

Not used.

Value

A "mshapviz" object.

Examples

S <- matrix(c(1, -1, -1, 1), ncol = 2, dimnames = list(NULL, c("x", "y")))
X <- data.frame(x = c("a", "b"), y = c(100, 10))
s1 <- shapviz(S, X, baseline = 4)[1L]
s2 <- shapviz(S, X, baseline = 4)[2L]
s <- mshapviz(c(shp1 = s1, shp2 = s2))
s

shapviz documentation built on Oct. 14, 2023, 5:07 p.m.