You can adjust the color scale of a heatmap in R using the scale_fill_gradient2() function from the ggplot2 package, which creates a diverging color scale with two endpoints and a midpoint. You can specify the low, mid, and high colors, as well as the midpoint value and the limits of your scale.