vividReorder | R Documentation |
Reorders a square matrix so that values of high importance and interaction strength are pushed to the top left of the matrix.
vividReorder(d)
d |
A matrix such as that returned by vivi |
A reordered version of d.
f <- lm(Sepal.Length ~ ., data = iris[, -5])
m <- vivi(fit = f, data = iris[, -5], response = "Sepal.Length")
corimp <- abs(cor(iris[, -5])[1, -1])
viviUpdate(m, corimp) # use correlation as importance and reorder
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.