[R] ggplot2 avoid automatic color selection

Immanuel B mane.desk at googlemail.com
Fri Jun 10 15:55:43 CEST 2011


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 = cellLine7064, color = drug, geom = c("line", "point"))

best regards,
Immanuel



More information about the R-help mailing list