You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am making 3D plots and coloring the dots based on which cluster they belong to. the issue only seems to arise when the size is specified.
It's difficult to illustrate with pictures since it is in 3D, but basically dots that are behind other dots in 3D, overlay dots in front of them.
#umap.3d is character vector of umap colnames in data
library(plotly)
p <-plot_ly(
x = data[, umap.3d[1]],
y = data[, umap.3d[2]],
z = data[, umap.3d[3]],
type="scatter3d",
mode = "markers",
size = 1,
color = as.factor(data$kmeans_clustering)) %>%
layout(
title = "Clusters"
);p
Pay attention to the pink and orange cluster down to the right. Here they are on top of all other dots.
After changing the angle you can see that they actually belong to another population far in the back.
Now without any size parameter.
p <-plot_ly(
x = data[, umap.3d[1]],
y = data[, umap.3d[2]],
z = data[, umap.3d[3]],
type="scatter3d",
mode = "markers",
color = as.factor(data$kmeans_clustering)) %>%
layout(
title = "pheno_clusters"
);p
The text was updated successfully, but these errors were encountered:
Hi,
I am making 3D plots and coloring the dots based on which cluster they belong to.
the issue only seems to arise when the size is specified.
It's difficult to illustrate with pictures since it is in 3D, but basically dots that are behind other dots in 3D, overlay dots in front of them.
Pay attention to the pink and orange cluster down to the right. Here they are on top of all other dots.

After changing the angle you can see that they actually belong to another population far in the back.

Now without any size parameter.
The text was updated successfully, but these errors were encountered: