Using the code below I can get a discontinuous heatmap.
qplot(mpg, wt, data = mtcars, colour = cyl, xlab = "MPG", ylab = "WT") +
scale_colour_gradient2(name = "Cylinders", midpoint = median(mtcars$cyl),
low = "red", mid = "green", high = "black")
I wish to intrapolate this data to plot a continuous heatmap. But at the same time using qplot for plotting if possible.