Skip to content

Commit

Permalink
Broad celltype as label
Browse files Browse the repository at this point in the history
  • Loading branch information
sjspielman committed Nov 5, 2024
1 parent dc6c7cb commit 71a4a1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scRNA-seq-advanced/02-dataset_integration.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ scater::plotReducedDim(merged_sce,
point_alpha = 0.2,
# Allow for faceting by a variable using `other_fields`:
other_fields = "sample") +
scale_color_brewer(palette = "Dark2", name = "celltype_broad", na.value = "grey80") +
scale_color_brewer(palette = "Dark2", name = "Broad celltype", na.value = "grey80") +
guides(color = guide_legend(override.aes = list(size = 3, alpha = 1))) +
ggtitle("UMAP after integration with fastMNN") +
# Facet by sample
Expand Down Expand Up @@ -811,7 +811,7 @@ scater::plotReducedDim(merged_sce,
point_alpha = 0.2,
# Specify variable for faceting
other_fields = "sample") +
scale_color_brewer(palette = "Dark2", name = "celltype_broad", na.value = "grey80") +
scale_color_brewer(palette = "Dark2", name = "Broad celltype", na.value = "grey80") +
guides(color = guide_legend(override.aes = list(size = 3))) +
ggtitle("UMAP after integration with harmony") +
facet_wrap(vars(sample))
Expand Down

0 comments on commit 71a4a1c

Please sign in to comment.