Dear all, I have a set of shapefiles which contents are polygons. I would like to know if is there a way of I obtain the links between the polygons, something like a "polygon spanning tree". For point patterns I can use de spatstat package, but I need to do it for polygons.
Below I send a sample of what I need as output. mydatafile<-read.table(stdin(),head=T,sep=",") x,y,y2 5,5, 5,30, 45,35, 50,16.5, 5,5, NA,, 30,80, 30,102.4, 60,120, 60,100, 65,95, 50,80, 30,80, NA,, 72.3,94.4, 80,110, 100,110, 100,60, 70,70, 70,80, 72.3,95.1, NA,, 40,60, 40,50, 60,50, 60,60, 40,60, NA,, 15,70, 15,55, 20,55, 20,70, 15,70, NA,, 2,100, 2,80, 10,80, 17.1,108, 2,100, NA,, 70,20, 101.6,20, 90,45.6, 70,35, 70,20, NA,, 10,,80 15,,70 NA,, 30,,80 20,,70 NA,, 40,,60 20,,60 NA,, 17,,108 30,,102 NA,, 17.5,,55 17.5,,30 NA,, 50,,80 50,,60 NA,, 65,,95 72,,94 NA,, 60,,60 70,,70 NA,, 45,,50 45,,35 NA,, 60,,50 70,,35 NA,, 2,,80 5,,30 NA,, 50,,16 70,,20 NA,, 90,,45 100,,60 plot(y~x,data=mydatafile,type="l") lines(y2~x,data=mydatafile,type="l",col="orange1",lty=2) Kind regards, Miltinho/Brazil para armazenamento! [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org 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.