Hi Hadley,
Will look forward to any updates as I'm a big fan of ggplo2 now. Is
there a workaround for the legend labelling issue in the meantime? I
have a plot I'm very happy with which unfortunately can't be
interpreted without the correct legend labels.
Kamy
On Oct 5, 2:52 pm, hadley wickham <
h.wick...@gmail.com> wrote:
> Hi Kamy,
>
> It's a bug and on my to do list.
>
> Hadley
>
>
>
>
>
> On Mon, Oct 5, 2009 at 3:45 AM, Kamy <
combizkhoz...@gmail.com> wrote:
>
> > The documentation indicates that scale_fill_gradient() and
> > scale_colour_gradient() accepts labels(). I have been trying to use
> > these labels to set thelegend; however, in the example below, the
> >legendshows 0,150,300 instead of x,y,z. What's the correct way to
> > set thelegendlabels? Thank you
>
> > mylabels=c("a","b","c")
> > myscores=c(10,100,300)
> > myd=data.frame(mylabels,myscores)
> > ggplot(data=myd)+
> > theme_bw() +
> > geom_bar(aes(x=factor(mylabels,levels=unique(mylabels)),y=myscores,
> > fill=myscores)) +
> > scale_fill_gradient("LegendTitle", low="#F0F8FF",