[R] Everything in ggplot2 is blue
Ista Zahn
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)
Best,
Ista
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.
>
> Ken
> 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
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help
mailing list