Re: [R] Help with removing extra legend elements in ggplot

2013-11-24 Thread jwd
On Tue, 19 Nov 2013 16:44:11 -0700 Matthew Van Scoyoc wrote: You want to consider this as a programming bug in your code. Executing each line sequentially shows that the problem appears in the second line: nmds.fig + geom_point(aes(color = VegType, shape = VegType, size = 10)) ?aes() and ?geom

Re: [R] Help with removing extra legend elements in ggplot

2013-11-19 Thread Matthew Van Scoyoc
Awesome! Thanks for the fix Dennis, and thanks for clearing up aes() too. It makes sense now. Cheers, MVS = Matthew Van Scoyoc Graduate Research Assistant, Ecology Wildland Resources Department & Ecology Center Quinney College of Nat

Re: [R] Help with removing extra legend elements in ggplot

2013-11-19 Thread Dennis Murphy
The additional element comes from this code: geom_point(aes(color = VegType, shape = VegType, size = 10)) Take the size argument outside the aes() statement and the legend will disappear: geom_point(aes(color = VegType, shape = VegType), size = 10) The aes() statement maps a variable to a plot

Re: [R] Help with removing extra legend elements in ggplot

2013-11-19 Thread Matthew Van Scoyoc
No dice. I still get the "10" legend element. Thanks for the quick reply. Cheers, MVS = Matthew Van Scoyoc Graduate Research Assistant, Ecology Wildland Resources Department & Ecology Center Quinney College of Natural Resources

Re: [R] Help with removing extra legend elements in ggplot

2013-11-19 Thread David Winsemius
On Nov 19, 2013, at 3:44 PM, Matthew Van Scoyoc wrote: > I can't get the fine tuning right with my legend. I get an extra legend > element "10" which is the point size in my plot. Can someone help me get rid > of this extra element? Additionally I would also like to reduce the size of > the legen