I have differences between hourly temperature and average temperature data from 1991 to 2021. I would like to plot 3D plot with ksdensity. Suppose that x= axis of year, y = axis of temperatrue differences from mean temperature, z= densities. How to generate a 3D kernel density plot? Here is the code of plot 2D kernel density.
Here is the temperature data.