[R] Everything in ggplot2 is blue
istazahn at gmail.com
Sun Mar 13 14:38:57 CET 2016
color is the border, fill is the inside color. You nees
aes(x = W, y = IPouts, fill = SO)
On Mar 12, 2016 10:43 PM, "KMNanus" <kmnanus at gmail.com> wrote:
> I’m working with a data frame called “Koufax” (his lifetime pitching
> stats) in order to improve my ggplot2 skills.
> I’ve worked with a variety of iterations of ken <- ggplot(koufax, aes(x =
> W, y = IPouts, color = SO)) + geom_bar(stat = "identity”) but all the bars
> come up blue, even if I call... ken + scale_fill_gradient(low =
> "red",high = "yellow”).
> Has this happened to anyone? I’m wondering if there’s a package that I
> need to load through a library call.
> kmnanus at gmail.com
> 914-450-0816 (tel)
> 347-730-4813 (fax)
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help