How should plotUMAP
be used to retain cell IDs so that ggplotly(someUMAP)
will show IDs on hover? I have made a faceted UMAP plot, faceted by cell types and some clusters are completely overlapping and not seen to have different cell types in them unless they are faceted. So, I would like to get cell IDs of some cells from cancer facet and cell IDs from fibroblast facet to examine the known marker genes for cancer and fibroblasts of the cells with different cell type but overlapping almost perfectly in UMAP. I have tried using iSEE but found it clunky and was unsuccessful for this task, so am hoping for a lightweight approach to work.
You could at some point add extra geoms to a plot into ggplotly that would show up in the hovertext, eg a text geom to ggplotly that will come up in the hovertext. So something like: