[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Output shapefile for the igraph network in R

From: Tamás Nepusz
Subject: Re: [igraph] Output shapefile for the igraph network in R
Date: Thu, 9 Feb 2012 10:38:12 +0100

To be honest, I know nothing about shapefiles, but this post on Stack Overflow seems to imply that there is a "shapefiles" package in R which might be of some use to you:


Most likely you will have to create a data frame that is in the format suitable for the shapefiles package, then call convert.to.shapefile and write.shapefile.


Sent with Sparrow

On Thursday, 9 February 2012 at 05:31, Seen wrote:

Hello I have a network in R using the igraph library

Vertices: 616
Edges: 6270
Directed: TRUE
No graph attributes.
Vertex attributes: name, Lat, Lon.
Edge attributes: V3.

How can I generate two shapefiles for the Vertices and the Edges using
the Lat, Lon info in the vertices attributes?
If I cannot generate shapefiles, can I export it in a way that ArcGIS
can recognize?

Zhuojie Huang
Department of Geography
& Emerging Pathogens Institute
University of Florida

igraph-help mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]