[R] mark sections on a time chart

2012-10-20 Thread Christof Kluß
Hi is there a comfortable way to mark periods on time chart (axis.Date)? To do it with arrows(...), seems to be irritating. I want to have something like ---winterspringsummer-- thx Christof __ R-help@r-project.org mailing list

Re: [R] mark sections on a time chart

2012-10-20 Thread Rui Barradas
Hello, The function below requires package plotrix and is far from fully tested, but it might do what you want. library(zoo) arrowsRange - function(from, to, at = 1, labels = NULL, length = 1/8, horizontal = TRUE, border = FALSE, ...){ require(plotrix) f1 - function(){

Re: [R] mark sections on a time chart

2012-10-20 Thread Rui Barradas
Hello, Sorry, didn't paste the function call. plot(z) abline(v = c(start[1], end)) arrowsRange(start, end, at = 0, labels = seasons) Rui Barradas Em 20-10-2012 13:19, Rui Barradas escreveu: Hello, The function below requires package plotrix and is far from fully tested, but it might do

Re: [R] mark sections on a time chart

2012-10-20 Thread Christof Kluß
Hello Rui Barradas thank you very much. That is exactly what I was looking for. Christof Am 20-10-2012 14:19, schrieb Rui Barradas: library(zoo) arrowsRange - function(from, to, at = 1, labels = NULL, length = 1/8, horizontal = TRUE, border = FALSE, ...){ require(plotrix) f1