Hello,

the same parameter for colour and shape aesthetics gives 2 legends:

library(ggplot2)
p <- ggplot(mtcars, aes(x=wt, y=mpg)) 
p + geom_point(aes(colour=factor(cyl), shape=factor(cyl)))

Can the 2 legends be consolidated to one with
colours and shapes of the symbols matched between legend and plot ?

Thank you

Bernd Engelmann 
[EMAIL PROTECTED]
phone: + 49-351-277-4545  
fax: + 49-351-277-9-4545 
AMD Saxony/AMD Saxony Limited Liability Company & Co. KG
M/S E23-TY
Wilschdorfer Landstr. 101 
D-01109 Dresden 
Germany

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to