Given a data set like this:
TT <- c(23.67, 23.67, 23.68, 23.67, 23.67, 23.67, 23.66, 23.59, 23.54, 23.30, 20.65, 16.13,
13.39, 12.81, 12.04, 11.70, 11.42, 11.24, 10.86, 10.63, 9.88, 9.19, 8.79, 8.37,
7.85, 7.36, 7.10, 6.99, 6.88, 6.69, 6.39, 6.35, 6.31, 6.25, 6.18, 6.02,
6.00, 5.96, 5.93, 5.93, 5.86, 5.85, 5.85, 5.85, 5.82, 5.80, 5.78, 5.75)
x <- rep(1, 48)
D <- seq(1, 48)
DF <- data.frame(D, x, TT)
My goal is to plot out the differences in T using a color pallet from Red to Blue. My current plot looks like this:
gg <- ggplot(data = DF, aes(x = x, y=D, height = 1.1, width = 1.3, fill = TT))+
geom_tile() +
scale_fill_gradient(high = "firebrick2", low = 'dodgerblue2',
na.value = 'grey50', space = "Lab",
lim = c(min(DF$T), max(DF$T)))
gg
But I would like to emphasize the graduations in change at the lower end of the spectrum (say changes between 7 and 5). Is there a way in ggplot I can saturate the higher values so they are all represented by a single (or similar looking) red color, leaving most of the gradient between red and blue to represent the changes between 7 and 5?