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]))
l
}
It might have problems if the graph has multiple components.....
Gabor
PS. I am quite surprised that this layout can be used for anything.....
On Mon, Nov 17, 2008 at 11:25 AM, Rainer Tischler <[EMAIL PROTECTED]> wrote:
> 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 version on Windows.
>
> Many thanks,
> Rainer Tischler
>
>
>
>
>
>
>
> WikipediaWictionaryChambers (UK)Google imagesGoogle defineThe Free
> DictionaryJoin exampleWordNetGoogleUrban
> DictionaryAnswers.comrhymezone.comMerriam-Webster<>0
> wvcidfjoguarm
>
>
>
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Gabor Csardi <[EMAIL PROTECTED]> UNIL DGM
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.