Re: [R] Calendar Heat Map

2019-02-06 Thread reichmanj
Jeff Thanks - that’s easy enough Jeff -Original Message- From: Jeff Newmiller Sent: Wednesday, February 6, 2019 7:09 AM To: r-help@r-project.org; reichm...@sbcglobal.net Subject: Re: [R] Calendar Heat Map ggplot automatically chooses continuous or discrete scales depending on the

Re: [R] Calendar Heat Map

2019-02-06 Thread Jeff Newmiller
ggplot automatically chooses continuous or discrete scales depending on the type of column you give it... so don't give it a numeric column (integers are a subset of numeric)... give it a character (lazy) or factor (better for controlling what the output looks like) value for your colour specifi

[R] Calendar Heat Map

2019-02-05 Thread reichmanj
r-Help Form I'm working on a "Time-Series Calendar Heatmap" using the following code. ggplot(myData, aes(monthweek, weekdayf, fill = myData $adjusted)) + geom_tile(colour = "white") + facet_grid(year(myData $date)~monthf) + scale_fill_gradient(low="red", high="green") + xlab("Week of