[BioC] How to plot the graph object
Dirk Koschuetzki
dkoschuetzki at gmx.de
Mon May 9 21:53:10 CEST 2005
Hello,
On Fri, 06 May 2005 12:43:05 +0200, Yilin Liu <Y.liu at mdx.ac.uk> wrote:
> It is said that the Rgraphviz package does not work under Windows
> environment.
> Then how to plot the graph in R with the use of graph package.
A different way is possible via the SNA package (from cran):
require(graph)
require(sna)
require(Rgraphviz)
data(biocRepos)
## Does not work on windows... (does it? untested!)
plot(biocRepos)
## Nice layouts with SNA package:
gplot(as(biocRepos,"matrix"), mode="kamadakawai")
gplot3d(as(biocRepos,"matrix"), mode="kamadakawai")
There are several layout argorithms ("modes") available.
Cheers,
Dirk
More information about the Bioconductor
mailing list