Start a navGraph session and filter the navigation graph's node according to some scagnostic measures

Share:

Description

Scanotstics assigns each possible scatterplot combination a weight for the attribute "Outlying", "Skewed", "Clumpy", "Sparse", "Striated", "Convex", "Skinny", "Stringy", "Monotonic".

With scagNav one can start a navGraph session that constructs a navigation graph that shows certain properties most.

See the vignette for more examples.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
scagNav(data,
	 	scags = c("Clumpy", "NotClumpy", "Monotonic", "NotMonotonic",
				"Convex", "NotConvex", "Stringy", "NotStringy",
				"Skinny", "NotSkinny", "Outlying","NotOutlying",
				"Sparse", "NotSparse", "Striated", "NotStriated",
				"Skewed", "NotSkewed"),
        topFrac = 0.2, combineFn = NULL,
        settings = NULL, glyphs = NULL,
        images = NULL, sep = ":",
        layout = "circle")

Arguments

data

a single- or a list of objects generated by the ng_graph function. I.e. objects from the NG_data class.

scags

Single element or a subset of (with possible a "Not" preceding):
"Outlying", "Skewed", "Clumpy", "Sparse", "Striated",
"Convex", "Skinny", "Stringy", "Monotonic"

topFrac

Keep the nodes with the topFrac fraction of the scagnostic weights.

combineFn

Must be a function that takes in a vector of length scags and returns a single value. This return value comprises the new weights of the nodes get selected from.

settings

a list of pailists. See the navGraph documentation.

glyphs

Vector of character strings matching either the names or shortnames of the NG_data object.

images

NG_image object. Order of the images must match the order of the data in the NG_data object.

sep

Node names represent a set of variables whose name are separated by the character string sep (containing no spaces).

layout

One of the following strings: "circle", "kamadaKawaiSpring", "fruchtermanReingold" or "random".

Value

navGraph handler.

Author(s)

Adrian Waddell and R. Wayne Oldford

See Also

navGraph, scagEdgeWeights, scagGraph, ng_data

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Define a NG_data object
data(olive)
ng.olive <- ng_data(name = "Olive",
		data = olive[,-c(1,2)],
		shortnames = c("p1","p2","s","ol","l1","l2","a","e"),
		group = as.numeric(olive$Area)+1
)

nav <- scagNav(data = ng.olive,
		scags = c("Skinny", "Sparse", "NotConvex"),
		topFrac = 0.2,
		combineFn = max,
		glyphs = shortnames(ng.olive)[1:8],
		sep = ':')

nav <- scagNav(data = ng.olive,
		scags = c("Skinny", "Sparse", "NotConvex"),
		topFrac = 0.2,
		glyphs = shortnames(ng.olive)[1:8],
		sep = ':')

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.