Generating rainbow contour plots, coloured levels

Attempted answers are probably getting stuck here for want of representative data. See the FAQ: How to do a minimal reproducible example reprex for beginners.

What is sought is something that can be done, perhaps more easily, with other tools, for example {ggplot2} and {rayshader} in combination.