Re: [R] ggplot2 avoid automatic color selection

2011-06-10 Thread Ista Zahn
See ?scale_colour_manual Best, Ista On Fri, Jun 10, 2011 at 9:55 AM, Immanuel B wrote: > Hey all, > > I'm trying to replicate some plots with ggplot2. The problem is that I > need to specify the color for every > attribute (drug). If I use the code below the colors get automatically > assigned b

[R] ggplot2 avoid automatic color selection

2011-06-10 Thread Immanuel B
Hey all, I'm trying to replicate some plots with ggplot2. The problem is that I need to specify the color for every attribute (drug). If I use the code below the colors get automatically assigned but I need to plot drug1 in black drug2 in blue etc. How do I do that? q = qplot(days,vol,data = cell