I'm plotting in ggplot2 and want to add some lines that are colored the same as the points. Can anyone tell me what the default color codes are when plotting in R? For example, what are the codes for the following 6 colors:
df <- structure(list(type = structure(1:6, .Label = c("a", "b", "c",
"d", "e", "f"), class = "factor"), value = 1:6), .Names = c("type",
"value"), class = "data.frame", row.names = c(NA, -6L))
library(ggplot2)
ggplot(df, aes(x=value, y=value, color=type)) + geom_point(shape=21, size=4)
Thanks!