[R] legends in ggplot

David Barron mothsailor at googlemail.com
Thu Oct 26 15:35:45 CEST 2006


Is it possible to change the legend title in ggplot that is generated
by a colour (other than by changing the name of the variable)?  For
example, this produces a legend title, "tip/total_bill".  How can that
title be changed?

ggpoint(ggplot(tips,aesthetics=list(y=tip,x=total_bill,colour=tip/total_bill)) )

Thanks.

-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP



More information about the R-help mailing list