l_graph | R Documentation |
Interactive graphs in loon are currently most often used for navigation graphs.
l_graph(nodes, ...)
## S3 method for class 'graph'
l_graph(nodes, ...)
## S3 method for class 'loongraph'
l_graph(nodes, ...)
## Default S3 method:
l_graph(nodes = "", from = "", to = "", isDirected = FALSE, parent = NULL, ...)
nodes |
object for method dispatch |
... |
arguments passed on to methods |
from |
vector with node names of the from-to pairs for edges |
to |
vector with node names of the from-to pairs for edges |
isDirected |
a boolean state to specify whether these edges have directions |
parent |
parent widget of graph display |
For more information run: l_help("learn_R_display_graph.html#graph")
graph handle
Other related graph objects, loongraph
,
completegraph
, linegraph
,
complement
, as.graph
Advanced usage l_navgraph
,
l_ng_plots
, l_ng_ranges
if(interactive()) {
G <- completegraph(nodes=names(iris))
LG <- linegraph(G, sep=":")
g <- l_graph(LG)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.