[R] polygon circling a graph

2013-11-14 Thread email
Hi: I want to create a polygon encircling a graph. For this i use convex hull to get the coordinate points for polygon. g - barabasi.game(10) L-layout.fruchterman.reingold(g) temp1 - chull(L) temp1 - c(temp1, temp1[1]) plot(g, layout=layout.fruchterman.reingold) But when i plot the polygon

Re: [R] polygon circling a graph

2013-11-14 Thread William Dunlap
Of email Sent: Thursday, November 14, 2013 10:04 AM To: r-help@r-project.org Subject: [R] polygon circling a graph Hi: I want to create a polygon encircling a graph. For this i use convex hull to get the coordinate points for polygon. g - barabasi.game(10) L-layout.fruchterman.reingold(g

Re: [R] polygon circling a graph

2013-11-14 Thread Carl Witthoft
Please post the packages from which 'barabasi' and 'layout.fruch' originate (not to mention whatever the plot() method is for whatever class your 'g' is). Further, without seeing what your data look like we have no way of knowing whether you've fed the appropriate elements of L to chull.