I am trying to create a heatmap that doesn't use gradient for values. There are only 2 numbers: 3 and 1. I want 3 to be a specific color and 1 to be another color. And this would also be reflected in the heatmap too.
data.heatmap <- ggplot(data = Good1_Poor3, mapping = aes (x = sample_id, y = Gene)) + geom_tile(aes(fill = response..Good1_Int2_Poor3.)) + scale_fill_gradient2() + theme(axis.text.y = element_text(size = 4))