Skip to content
Prev 172439 / 398502 Next

ggplot2: annotated horizontal lines

I see your problem (although label should be outside the mapping in  
your case, i think).

A possible workaround is to provide some dummy data, as the default  
NULL doesn't seem to work,

  qplot( wt, mpg, data=mtcars ) +
  geom_text(data=data.frame(x=0,y=0),mapping=aes(x=1,y=0),label="test")

I'm sure Hadley will come up with a better explanation.

Best,

baptiste
On 3 Mar 2009, at 19:51, Dave Murray-Rust wrote:

            
_____________________________

Baptiste Augui?

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag