of data.
~ John Tukey
-Oorspronkelijk bericht-
Van: r-help-boun...@r-project.org [mailto:r-help-boun...@r-
project.org] Namens baptiste auguie
Verzonden: dinsdag 3 maart 2009 21:50
Aan: Dave Murray-Rust
CC: R Help
Onderwerp: Re: [R] ggplot2: annotated horizontal lines
I see your
org [mailto:r-help-boun...@r-project.org] Namens
baptiste auguie
Verzonden: dinsdag 3 maart 2009 21:50
Aan: Dave Murray-Rust
CC: R Help
Onderwerp: Re: [R] ggplot2: annotated horizontal lines
I see your problem (although label should be outside the mapping in
your case, i think).
A possible workaro
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'
On 3 Mar 2009, at 18:41, baptiste auguie wrote:
What's wrong with geom_text?
my.value = 0.65
qplot(1,1)+geom_hline(v=0)+
geom_text(mapping=aes(x=1,y=0),label=paste(my.value),vjust=-1)
Well, firstly I hadn't thought to use it. Ooops.
Secondly, I can't make it just do a single valu
What's wrong with geom_text?
my.value = 0.65
qplot(1,1)+geom_hline(v=0)+
geom_text(mapping=aes(x=1,y=0),label=paste(my.value),vjust=-1)
baptiste
On 3 Mar 2009, at 18:10, Dave Murray-Rust wrote:
Hello,
I'm using geom_hline to add a minimum line to my plot (representing
the best s
5 matches
Mail list logo