[R] ggplot and colors

2013-02-04 Thread Adel ESSAFI
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],

Re: [R] ggplot and colors

2013-02-04 Thread Ista Zahn
Hi, fill is not the same as color. You need scale_color_manual(values=c(black, black , black, black, black, black, black, black, black, black, black, black )) although it is not clear why you are using aesthetic mapping to set everything to black... Best, Ista On Mon, Feb 4, 2013 at 6:17 AM,

Re: [R] ggplot pale colors

2011-05-29 Thread Victor Gabillon
Hi Ista, Thank you so much for your explanation!! I know now how to handle this scale_color_manual() function. Le 28/05/2011 19:56, Ista Zahn a écrit : Hi Victor, The problem is that you have not grasped the difference between setting an aesthetic to a fixed value and mapping it to a

[R] ggplot pale colors

2011-05-28 Thread Victor Gabillon
Hello i am new to ggplot and i observed a strange behavior. I want to display two groups of points, each group with a different color. But i encountered a problem with the colors. Here is a first example: dataset - data.frame(Main = c(A, A, B, B), Detail = c( b, c, 1, 2), resp = runif(4,

Re: [R] ggplot pale colors

2011-05-28 Thread Ista Zahn
Hi Victor, The problem is that you have not grasped the difference between setting an aesthetic to a fixed value and mapping it to a variable. See below for details. On Sat, May 28, 2011 at 6:16 AM, Victor Gabillon victor.gabil...@inria.fr wrote: Hello i am new to ggplot and i observed a strange