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
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
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,
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
4 matches
Mail list logo