I'm interested in using R's plotting capabilities to try to generate a graph showing the relationship/pairing frequency of words appearing in a block of unstructured text. I don't have a specific algorithm or approach in mind, just looking to portray text in an interesting fashion. The output I'm hoping for is something like the following called a "Phrase Network": http://manyeyes.alphaworks.ibm.com/manyeyes/page/Phrase_Net.html I found this package which seems semi-related, but I haven't been getting great results and I'm not sure if I'm on the right track. http://tm.r-forge.r-project.org/screenshots.html Does anyone have suggestions for another package I should look into? -D _________________________________________________________________ Hotmail: Free, trusted and rich email service. [[alternative HTML version deleted]]
D. Dashcle <d.daschle at hotmail.com> [Wed, Feb 10, 2010 at 01:13:58AM CET]:>> I'm interested in using R's plotting capabilities to try to generatea graph showing the relationship/pairing frequency of words appearing in a block of unstructured text. I don't have a specific algorithm or approach in mind, just looking to portray text in an interesting fashion. The output I'm hoping for is something like the following called a "Phrase Network":> > http://manyeyes.alphaworks.ibm.com/manyeyes/page/Phrase_Net.htmlIt looks like you need algorithms to position nodes in order to minimise edge lengths and overlap. A well known program which does that is graphviz. I am quite sure that no one has taken the effort to re-implement the algorithm in R, but there are many R packages that interact with graphviz. I would look for "graphviz" in www.rseek.org and procede from there. -- Johannes H?sing There is something fascinating about science. One gets such wholesale returns of conjecture mailto:johannes at huesing.name from such a trifling investment of fact. http://derwisch.wikidot.com (Mark Twain, "Life on the Mississippi")
2010/2/10 Johannes Huesing <johannes at huesing.name>:> D. Dashcle <d.daschle at hotmail.com> [Wed, Feb 10, 2010 at 01:13:58AM CET]:> I would look for "graphviz" in www.rseek.org and procede from there.Is graphviz really the only option? I guss so, but the license of graphviz is very restricted and not comparable to the usal open source licenses, e.g. GPL or similar. I spent about a day to find information on graphs in R, search and searched, tried many libraries, etc. Compared to other subjects or areas, I found very little and the quality was limited. What I need would be: - import/export from GraphML - basic and advanced graph algorithms - nice visualization of graphs (graphviz) - interactive input of graphs (or external program and import via GraphML) Is R the right programming language for that? (I think it is...) Are there any pointers? Books or tutorials on using R for graph stuff.? Any help is very much appreciated! Best regards, St.
On Fri, Feb 12, 2010 at 5:19 AM, stvienna wiener <stvienna at gmail.com> wrote:> ? - interactive input of graphs (or external program and import via GraphML) >Perhaps latticist, rggobi?> Is R the right programming language for that? (I think it is...) > > Are there any pointers? Books or tutorials on using R for graph stuff.? >This [1][2] might provide some pointers. Also look at the Graphs Task View. Liviu [1] http://www.metaresearch.de/exlib/ [2] http://bm2.genes.nig.ac.jp/RGM2/index.php?clear=all