Quantcast
Channel: Make all positive value bar graph the same color theme as bar graph with negative values in ggplot - Stack Overflow
Browsing all 2 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Answer by jlhoward for Make all positive value bar graph the same color theme...

Aesthetics don't work that way in ggplot. $colour is treated as a factor with two levels, firebrick1, and steelblue, but these are not the colors ggplot uses. They are just the labels for the color...

View Article



Image may be NSFW.
Clik here to view.

Make all positive value bar graph the same color theme as bar graph with...

I just started playing with ggplot yesterday. My code for the bar graph with negative values work as I have expected:dtf1 <- data.frame(ID = c(1:10),Diff = c(-5:4))dtf1$colour <- ifelse(dtf1$Diff...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images