Currently I am trying to plot a heatmap or 3D surface plot, that represents relationship between 3 variables. I am new to R studio so I keep struggling with my code. Therefore my questions are:

Is there any simple code for plotting 3D surface graph or a heatmap?

Are there any specific requirements for a data-set format regarding to one of these graphs?

Similar questions and discussions