Tree | R Documentation |
Tree
An object which contains the tree and the dataset
Tree(x, data)
x |
the graph with named nodes, an object of class |
data |
Dataset with named columns |
An object containing the graph and the data whose columns are associated to the nodes.
g<- make_tree(7,3, mode="undirected") g<- set.vertex.attribute(g, "name", V(g), letters[1:7]) data<- matrix(rnorm(10*7), 10,7) colnames(data)<- get.vertex.attribute(g, "name", V(g)) # object without latent variables Tree(x = g, data = data) # object with latent variables Tree(x = g, data = data[,-c(1,2)])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.