Skip to content
Prev 378468 / 398502 Next

Calendar Heat Map

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 specification.

Read

?cut

for one clean way to make a new factor column in your data set before you give it to ggplot. Note that if you don't like the labels it generates automatically you can specify them yourself.
On February 5, 2019 2:28:28 PM PST, reichmanj at sbcglobal.net wrote: