Displaying 2 results from an estimated 2 matches for "graphexample".
2011 May 17
1
R crashes if "toFile" given "~/" in Linux envirnonment
...ed R to crash. Is
this expected behavior? See my output below and sessionInfo(). Also, not
shown, but 'setwd("~/Desktop")' works just fine. Thanks, Mark
# sample code from Rgraphviz clusterData help page
library(graph)
library(Rgraphviz)
g1_gz <- gzfile(system.file("GXL/graphExample-01.gxl.gz",package="graph"),
open="rb")
g11_gz <- gzfile(system.file("GXL/graphExample-11.gxl.gz",package="graph"),
open="rb")
g1 <- fromGXL(g1_gz)
g11 <- fromGXL(g11_gz)
g1_11 <- join(g1, g11)
sgl <- vector(mode="list"...
2011 May 17
0
auto clustering with Rgraphviz: possible?
...like to do is be able to
auto-generate plots for each of these independent clusters. Is there a way
to programatically identify these clusters and use this identificaiton to
create either subgraphs or clusters?
#For example
library(graph)
library(Rgraphviz)
g1_gz <- gzfile(system.file("GXL/graphExample-01.gxl.gz",package="graph"),
open="rb")
g11_gz <- gzfile(system.file("GXL/graphExample-11.gxl.gz",package="graph"),
open="rb")
g1 <- fromGXL(g1_gz)
g11 <- fromGXL(g11_gz)
g1_11 <- join(g1, g11)
plot(g1_g11)
# yields 2 obvious cluste...