Learn R Programming

RnavGraph (version 0.1.2)

ng_2d_ggobi: Visualization instruction for 2d scatterplots on a ggobi display

Description

Visualization instruction for a navGraph session that link the nodes of a navigation graph to 2d scatterplots and the edges to a 3d rigid rotation or a 4d transition.

The scatterplots will be displayed on a ggobi display, provided by the rggobi package.

Usage

ng_2d_ggobi(data, graph)

Arguments

data
NG_data object.
graph
NG_graph object.

Value

  • NG_Viz2D_Ggobi object that inherits from the NG_Visualization class.

See Also

navGraph, ng_data, ng_graph, ng_get-methods, ng_set-methods, ng_2d, ng_2d_myplot

Examples

Run this code
## NG_data
ng.iris <- ng_data(name = "iris", data = iris[,1:4],
		shortnames = c('s.L', 's.W', 'p.L', 'p.W'),
		group = iris$Species)

## NG_graph
G <- completegraph(shortnames(ng.iris))
LG <- linegraph(G, sep = "::")
ng.lg <- ng_graph("3d transition", LG, "::", "kamadaKawaiSpring" )

## Visualization instruction
viz1 <- ng_2d_ggobi(ng.iris, ng.lg)
viz1

## Start a navGraph session
nav <- navGraph(ng.iris, ng.lg, viz1)

Run the code above in your browser using DataLab