trans2pix | R Documentation |
Convert a transect coordinate file with some waypoints separated by NA into a matrix with intermediate coordinates replacing NA.
trans2pix(vect)
vect |
A two column matrix or data.frame |
If vect has more than two column the two first column only are read. This function computes the intermediate coordinates between two waypoints replacing NA values.
A matrix with the intermediate coordinates computed.
trans2seg
x<-c(10,NA, NA, NA,56,NA,NA,100)
y<-c(23,NA, NA, NA,32,NA,NA,150)
cols=c("red","blue","blue","blue","red","blue","blue","red")
plot(x,y,col=cols,pch=19)
plot(trans2pix(cbind(x,y)),col=cols,pch=19)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.