3D surface plots

How I can plot the following data in 3D surface plots. My data is in the dataframe.
Can someone help me?

please avoid screenshots where possible.
I would recommend to you the plotly package.
You can see example of how to use it here:
3D Surface Plots | R | Plotly

I tried the following
fig <- plot_ly(x = Poigam_df$X, y = Poigam_df$Y, z = Poigam_df$F_SPA)
fig <- fig %>% add_surface()
fig

but I got
Error: z must be a numeric matrix

You should group x and y data so that the matrix z is defined as z_i,j=z(x_i,y_j)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.