Description Usage Arguments Value Examples
View source: R/variablerelationships.R
Finds the hirarchical relationship between all variables and connects them in a network such as to optimize the mutual information. This also compares the n networks found graphically.
1 |
data |
the data.frame containing the observations and variables to inspect |
n |
the number of networks to consider and compare |
a character matrix with columns from and to representing the variables that are related
1 2 3 4 5 6 7 | data(iris)
data(mtcars)
library(dplyr)
if (requireNamespace("Rgraphviz")) {
discover_and_plot_variable_hierarchies(mtcars, 10) %>% as_tibble()
discover_and_plot_variable_hierarchies(iris, 10) %>% as_tibble()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.