I’m trying to plot depth on the z-axis using scatter3D, but am struggling to reverse the axis so that 0 is at the top.
Here is my code:
scatter3D(x,y,z, colvar = df$sci_water_temp, col=NULL, add = FALSE, ticktype="detailed",
xlab="Longitude",
ylab="Latitude",
zlab="Depth")
In my current plot, the greater depth is higher on the z-axis, but I need the “surface” to be the 0 value, at the highest point of the z-axis
New contributor
Molly Dent is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.