Re: [R] help with ggplot legend specification

2013-11-04 Thread Ista Zahn
ot;black") > pl + theme(legend.key.size = unit(2, "cm")) > > John Kane > Kingston ON Canada > > >> -Original Message- >> From: mike.conk...@gfk.com >> Sent: Thu, 31 Oct 2013 21:08:02 +0100 >> To: r-help@r-project.org >> Subject

Re: [R] help with ggplot legend specification

2013-11-04 Thread John Kane
ize))+ geom_point(shape=21,colour="black") pl + theme(legend.key.size = unit(2, "cm")) John Kane Kingston ON Canada > -Original Message- > From: mike.conk...@gfk.com > Sent: Thu, 31 Oct 2013 21:08:02 +0100 > To: r-help@r-project.org > Subject: [R] help with ggplot l

Re: [R] help with ggplot legend specification

2013-11-01 Thread Ista Zahn
You can override the legend aesthetics, e.g., ggplot(df,aes(x=Importance,y=Performance,fill=PBF,size=gapsize))+ geom_point(shape=21,colour="black")+ scale_size_area(max_size=pointsizefactor) + scale_fill_discrete(guide = guide_legend(override.aes = list(size = 4))) Best, Ista On Thu,

[R] help with ggplot legend specification

2013-10-31 Thread Conklin, Mike (GfK)
I am creating a scatterplot with the following code. pl<-ggplot(df,aes(x=Importance,y=Performance,fill=PBF,size=gapsize))+ geom_point(shape=21,colour="black")+scale_size_area(max_size=pointsizefactor) points are plotted where the size of the point is related to a metric variable gapsize