Possible Duplicate:
How to change line and shape colours in ggplot2?
pdf('test',onefile=T)
g <- ggplot(test,aes(x=timepoints,y= mean,ymax = mean + sde, ymin = mean - sde,colour=Experiment)) +
geom_errorbar(width=2) +
geom_point() +
geom_line() +
xlab('Time (min)') +
ylab('Fold Induction') +
opts(title = '5 min v 6 hr KCl treatment')
print(g)
dev.off()
this is what it prints.

how do I change the colour from the default to let’s say red and black? so ‘5 min’ is red and ‘6 hr’ is black?
Use scale_manual to manually define the scales: