Quantcast
Channel: Please help me with this graph code – ProgrammingR
Viewing all articles
Browse latest Browse all 4

Please help me with this graph code

0
0

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


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images