I am using scale_colour_manual
to specify the possible colors I need. However, if I choose red
I get the eye-burning red color rather than the milder ggplot2 default red that would appear if I didn't use scale_colour_manual
in the first place. What are the labels or constants for accessing ggplot2 default color palette?
ggplot(data=df, aes(x=n, y=rt, group=kernel, shape=kernel, colour=kernel)) +
geom_point(fill="white", size=3) + geom_line() + xlab("n") + ylab("Runtime (s)") +
opts(title=title,plot.title=theme_text(size=font.size)) +
scale_colour_manual(values=c("grey30", "red")) +
opts(legend.position = c(x_shift,0.87),legend.background=theme_rect(fill = "transparent",colour=NA))
Note that using 'red30' won't work, it only works for gray for some reason unknown to me.