[R] ggplot and colors

Adel ESSAFI adelessafi at gmail.com
Mon Feb 4 12:17:48 CET 2013


Hello,
I have a problem with ggplot and colors

I used this function to draw somes lines and I want them to be all black
(just to test)
however, I dont get any black line in the figure.

Do you have any experience with ggplot and manual colors??



ggplot(cmax, aes(cmax[,3], cmax[,6],colour=interaction(cmax[,1],cmax[,2])))
+ geom_line() +  geom_point() +  scale_fill_manual(values=c("black",
"black" , "black", "black", "black", "black", "black", "black", "black",
"black", "black", "black" ))


best regards





-- 
PhD candidate in Computer Science
Address
3 avenue lamine, cité ezzahra, Sousse 4000
Tunisia
tel: +216 97 246 706 (+33640302046 jusqu'au 15/6)
fax: +216 71 391 166
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 39485 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20130204/3f83fd3a/attachment.png>


More information about the R-help mailing list