Hi:
The fill aesthetic in geom_point() only works for a few point shapes
(21-25), but it wouldn't change the result in the legend. This is not
exactly what you asked for, but one alternative is to increase the
point size in the legend, which you can do using guide_legend().
Extending your example,
library(ggplot2)
ggplot(iris, aes(x=Sepal.Length,y=Petal.Length, colour=Species)) +
geom_point() +
guides(colour = guide_legend(override.aes = list(size = 5)))
To manually fill the legend boxes post-hoc would be a non-trivial
task, although it may be possible with some combination of gtable and
grid graphics.
Dennis
> --
> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example:
>
https://github.com/hadley/devtools/wiki/Reproducibility
>
> To post: email
ggp...@googlegroups.com
> To unsubscribe: email
ggplot2+u...@googlegroups.com
> More options:
http://groups.google.com/group/ggplot2
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ggplot2" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ggplot2+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.