Re: [R] igraph rglplot SVD-layout

2008-11-17 Thread Gábor Csárdi
Rainer, here is a quick workaround: layout.svd3 <- function (graph, d = shortest.paths(graph), ...) { if (!is.igraph(graph)) { stop("Not a graph object") } l <- svd(d, 3)$u l[, 1] <- l[, 1]/dist(range(l[, 1])) l[, 2] <- l[, 2]/dist(range(l[, 2])) l[, 3] <- l[, 3]/dist(range(l[, 3]

[R] igraph rglplot SVD-layout

2008-11-17 Thread Rainer Tischler
The layout.svd-function in the igraph-package seems to support only two-dimensional layouts currently. Is anybody aware of a workaround to obtain the coordinate-values for the third dimension? (And by the way, is it possible to change the background-color in rglplots?) I'm using the R-2.6.2 vers