You were pretty close. Here are two options that work:
ggplot( dum.frame, aes(x=time,y=var1)) + geom_point() +
geom_vline( data=dum.frame[wh.20,], aes(xintercept=time) )
ggplot( dum.frame, aes(x=time,y=var1)) + geom_point() +
geom_vline( xintercept= as.numeric(dum.frame$time[wh.20] ))
Hadley
> --
> You received this message because you are subscribed to the ggplot2 mailing list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2
>
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/