polygon circling a graph
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. email mail wrote
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 with the code below, the polygon dosen't encircle the graph. polygon(L[temp1, ], col = "#0000FFAA") How can I plot a polygon circling a graph? Regards: John
______________________________________________
R-help@
mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
-- View this message in context: http://r.789695.n4.nabble.com/polygon-circling-a-graph-tp4680479p4680484.html Sent from the R help mailing list archive at Nabble.com.