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
Hi there! Thanks for the package! I'm using destiny to plot a diffusion map from my seurat object. I use the cell cluster names(HSC, B, Neutrophils..) as my color by argument. I was able to plot for 2d graph for no problem(code as below), however, when I do 3d plot by plot(dm,c(1,2,3),col_by = "celltype",pch = 10), there's an error message saying : Error in plot.xy(xy.coords(x, y), type = type, ...) : invalid color name 'B'. Same error message when I try plot3d(). Do you know what might cause this issue? Thanks!
Hi @liuweihanty, I got the same error when trying to plot 3d diffusion map, but the work around that I found is to provide the "factor" to "col" argument, instead of directly specifying the column name.
Such as plot(dm, col = as.factor(dm$celltype), pch = 10)
Hi there! Thanks for the package! I'm using destiny to plot a diffusion map from my seurat object. I use the cell cluster names(HSC, B, Neutrophils..) as my color by argument. I was able to plot for 2d graph for no problem(code as below), however, when I do 3d plot by
plot(dm,c(1,2,3),col_by = "celltype",pch = 10)
, there's an error message saying :Error in plot.xy(xy.coords(x, y), type = type, ...) : invalid color name 'B'
. Same error message when I tryplot3d()
. Do you know what might cause this issue? Thanks!The text was updated successfully, but these errors were encountered: