How can a color gradient based on date be applied to a ggplot2 scatter plot?

The dt is factor variable, and probably scale_*_gradient is not available with discrete variable by nature.

The dt is factor variable, and probably scale_*_gradient is not available with discrete variable by nature. You can convert the dt into Date and then into integer that is continuous variable. Here is an example: ggplot(data, aes(x,y, colour=as.

Integer(as. Date(data$dt)))) + geom_point() + scale_colour_gradient(limits=as. Integer(as.

Date(c("2010-01-29","2010-12-31"))), low="white", high="blue") + opts(legend. Position="none").

This works nicely, thanks. – user338714 Feb 17 at 14:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions