Learn R Programming

loon (version 1.4.1)

l_graph: Generic funtction to create an interactive graph display

Description

Interactive graphs in loon are currently most often used for navigation graphs.

Usage

l_graph(nodes, ...)

# S3 method for graph l_graph(nodes, ...)

# S3 method for loongraph l_graph(nodes, ...)

# S3 method for default l_graph(nodes = "", from = "", to = "", isDirected = FALSE, parent = NULL, ...)

Value

graph handle

Arguments

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

Details

For more information run: l_help("learn_R_display_graph.html#graph")

See Also

Other related graph objects, loongraph, completegraph, linegraph, complement, as.graph

Advanced usage l_navgraph, l_ng_plots, l_ng_ranges

Examples

Run this code
if(interactive()) {
 G <- completegraph(nodes=names(iris))
 LG <- linegraph(G, sep=":")
 g <- l_graph(LG)
}

Run the code above in your browser using DataLab