Hi, i need to make a graph with the change points of the daily paths of spider monkeys, for this i have found this code
http://www.mcs.st-andrews.ac.uk/~pej/CPTauto_Rcode
It works well until it gets to the last sentences
text(z2bdiff, z1bdiff – 0.6*sd(bz1diff), paste(firstdiff,lastdiff,sep=”-“),col=”red”, cex = 0.7)
Error en text.default(z2bdiff, z1bdiff – 0.6 * sd(bz1diff), paste(firstdiff, :
zero-length ‘labels’ specified
If i put a vector in the argument, labels = seq_along(x), r says to me that it have not found the coordinates.
What is wrong with this code? How could i make it work?
Thank you so much for your time and help,
Carolina