According to ggplot2 Quick Reference: scale | Software and Programmer Efficiency Research Group , the following code should produce a graph with green points, lines, & error bars, all with pink outlines:
Preformatted text
ggplot(BxTC, aes(x = Backlight, y = Mean, group = TargetColor)) +
geom_line(show.legend = FALSE, aes(color = "pink", fill = "green", size = 2.4)) +
geom_point(show.legend = FALSE, aes(color = "pink", fill = "green", size = 6)) +
geom_errorbar(show.legend = FALSE, aes(color = "pink", fill = "green", ymin = Mean - FLSD, ymax = Mean + FLSD, width = 6, size = 2.1)) +
scale_x_continuous(breaks = seq(450, 750, 50)) +
scale_y_continuous(breaks = seq(20, 120, 20)) +
xlab("Backlight (cd/m2)") +
ylab("Score")
But this the the figure I get:
I expected setting the fill and outline colors to be simple, so I'm baffled by my output.