From fac33821031f9a6d12f036f3d0c48f3634bd799f Mon Sep 17 00:00:00 2001 From: Leonardo Collado Torres Date: Tue, 24 Mar 2020 14:17:47 -0400 Subject: [PATCH] Add notes and plotly code --- R/01-introduction.R | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/R/01-introduction.R b/R/01-introduction.R index 9c6f09c..83480bb 100644 --- a/R/01-introduction.R +++ b/R/01-introduction.R @@ -49,6 +49,11 @@ sce$clusters <- factor(igraph::cluster_louvain(g)$membership) # Visualization. scater::plotUMAP(sce, colour_by = "clusters") +p <- scater::plotUMAP(sce, colour_by = "clusters") +plotly::ggplotly(p) ## Notes +# Might be better to subset the sce object before running the plotly code + +