Re: [R] helper lines in plot. From point to axis.

2009-08-23 Thread Uwe Ligges
Looks like nobody answered so far? If I understood it correctly, you want something like: x - 1:36 plot(x, log(x, 1.1), xlab=Number of months, ylab=Visits(1000), main=webpage visits) helper.lines - function(x, y, lty=2, col=red, text=TRUE){ segments(par(usr)[1], y, x, y, col=col,

[R] helper lines in plot. From point to axis.

2009-08-13 Thread Andreas Christoffersen
This is a very basic question. I am just wondering if there is a function where i can choose a vector of points, and them helper lines are drawn. I am asking because lines seams to be a cumbersome way to do this. E.g. x - 1:36 plot(log(x,1.1),xlab=Number of months, ylab=Visits(1000),main=webpage