Hello,
I might be doing everything backwards, as I think I’m learning plotly by jumping on the deep and of the pool. I couldn’t however, find what I’m looking for int the tutorials.
I have to images, as raster, and I want to plot them stacked in a 3D plot. I got to plot them on 2d, but I don’t know how to create a stack from that. Here is the sample of code I have, which generates two images dislocated on plane xy. I need to add z dimension to that.
plot_ly() %>%
layout(
images = list(
list(source = raster2uri(staffly_se@rasterlists$masked$1
),
x = 0, y = 0, z = 0,
sizex = 1, sizey = 1,
xref = “x”, yref = “y”,
xanchor = “left”, yanchor = “bottom”,
sizing = “contain”),
list(
source = raster2uri(staffly_se@rasterlists$masked$2
),
x = 1, y = 1,
sizex = 1, sizey = 1,
xref = “x”, yref = “y”,
xanchor = “left”, yanchor = “bottom”,
sizing = “contain”)
)
)
Thank you!