l_graph: Generic funtction to create an interactive graph display

View source: R/l_graph.R

l_graphR Documentation

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 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, ...)

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")

Value

graph handle

See Also

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

Advanced usage l_navgraph, l_ng_plots, l_ng_ranges

Examples

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

loon documentation built on July 9, 2023, 5:48 p.m.