If it would help get any assistance with my issue, here's another
method I'm trying (using R sample data):

ggplot(mtcars, aes(disp)) +
  geom_point(aes(y = mpg, colour = qsec))+
scale_colour_gradient(low="yellow", high="green")+
  geom_point(aes(y = cyl, colour = qsec))+
scale_colour_gradient(low="red", high="blue")

What I want is the var "mpg" to be colored by the var "qsec" from
yellow to green and then the var "cyl" to be colored by the var "qsec"
from red to blue.     Instead, both colors end up being from red to
blue.

Thanks again,
kb

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to