[R] Bumps chart in R

Andreas Christoffersen achristoffersen at gmail.com
Mon Apr 27 22:22:20 CEST 2009


I am sorry - but maybe someone will help me with the final puzzle. How
to remove the legend from the qplot?

I can google my way to something like
sc <- scale_fill_continuous()
sc at legend <- FALSE

but
qplot(year, value, data = data, xlab="År",ylab="% i ekstrem fattigdom",
 geom = "line", group = Lande,col=Lande) + sc +
 geom_text(aes(label = Lande), subset(data,year == 1990),
   hjust = 0.5,vjust=0, size = 3, lineheight = 1)

doesnot work. Is there no simple way to just: legend=F ?

On Mon, Apr 27, 2009 at 8:53 PM, Andreas Christoffersen
<achristoffersen at gmail.com> wrote:
>> Or just add the text layer separately:
>>
>> qplot(year, value, data = data, geom = "line", group = countries) +
>>  geom_text(aes(label = countries), subset = .(year == 1990),
>>    hjust = 1, size = 3, lineheight = 1)
>
> THX a lot!
> The subset did not work for me, but this does:
> subset(data,year == 1990)
>
> Andreas
>




More information about the R-help mailing list