I am generating a bar chart from data that is in the following format:
count | month
------|-----------
1000 | 2012-01-01
10000 | 2012-02-01
I
You haven't assigned the fill aesthetic to anything: aes(month, count, fill = count) should do the trick.
Complete code:
ggplot(userData, aes(month, count, fill = count)) +
geom_bar(stat = "identity") +
scale_x_date() +
scale_fill_continuous(low="blue", high="red") +
labs(x= "Time", y="Count")
(limits are probably useless now, but feel free to add them back)