Skip to content
Prev 326140 / 398503 Next

Changing legend to fill colour in ggplot

On 6/27/2013 12:34 AM, Suparna Mitra wrote:
You can change the default aesthetics displayed in the legend using the 
override.aes argument to guide_legend.

scale_colour_discrete(guide=guide_legend(override.aes=aes(shape=15)))

Also, when giving data, especially a data set this small, give the 
output of dput(df) as that gives the complete data in a format that can 
be used to recreate it exactly in someoneelse's session. If I had that, 
I would test this to make sure it looks right.