I have the following contour graph of sea temperatures at different sea depths. I want to shade out the area beneath the max depth at each x axis point to represent the sea floor. How could I reverse the shaded portion as seen on the following image?
Thank you so much! This is the final code in case anyone else had similar issues. It stumped me initially until I realised the contour layer had to be added last.
plot_ly(data = sampleData1,
x=~factor(Station_No),
y=~-Depth_Max,
type ='scatter', mode = 'ribbon')%>%
add_trace(x = c("BN030", "BN110"), y =c(-13.3,-13.3), mode = "none", fill='tonexty',
fillcolor = 'darkgrey', showlegend = FALSE)%>%
add_trace(x = ~factor(Station_No), y = ~-Depth_Sample,z=~Temperature, type = "contour", colorscale='Jet', showlegend = FALSE)