layer3D.edges {ivue}R Documentation

Geometric Layers for a 3D Scene

Description

Layers are evaluated on the scene's private device before widget capture. They never open devices themselves. Row indices refer to the original X.

Usage

layer3D.edges(edges, col = "gray65", width = 1)

layer3D.path(path, col = "red3", width = 2)

layer3D.labels(
  rows,
  labels,
  col = "black",
  cex = 1,
  adj = c(0.5, 0.5),
  offset = c(0, 0, 0)
)

Arguments

edges

Two-column matrix of one-based endpoint indices. Empty edges are allowed. Self-loops are rejected; duplicate edges retain their order.

col

Color, scalar or one per edge/path segment/label.

width

Positive line width, scalar or one per edge/path segment.

path

Ordered vector of row indices. Fewer than two indices draws nothing.

rows

Row indices for labels.

labels

Text for each selected row.

cex

Positive text size multiplier.

adj

Two finite label-adjustment values.

offset

Three finite offsets added to label positions in data units.

Value

An ivue_layer specification for the layers argument.

Examples

edges <- matrix(c(1, 2, 2, 3), ncol = 2, byrow = TRUE)
layer3D.edges(edges)
layer3D.path(c(1, 3, 2), col = "red", width = 2)
layer3D.labels(c(1, 2), c("Start", "End"))

[Package ivue version 0.1.0 Index]