Displaying 1 result from an estimated 1 matches for "morvec".
Did you mean:
moravec
2009 Jul 22
1
R extract vertices for polygon
...Nrep=5
GROUP<-matrix(c(3,3,3,3,7,3,3,3,3,7,1,3,3,3,7,1,3,3,3,7,1,1,4,4,0),Nrep,Nrep)
column<- seq(1, 5, length=Nrep)
row<- seq(0,10,length=Nrep)
colnames(GROUP)<- round(column,3)
rownames(GROUP)<- row
GROUP
grupovec<-as.vector(GROUP)
flushvec<-rep(column,rep(Nrep,Nrep))
MORvec<-rep(row,Nrep)
plot(flushvec,MORvec, col=grupovec, pch=19)
polygon() # ????????????????????????????????????
Thanks
Angel