Skip to content

Commit

Permalink
Update 08_Clustering.R
Browse files Browse the repository at this point in the history
Beeswarm plot function was broken in calling scater:::.resolve_plot_colours. I managed to fix it by more directly calling scater:::.get_palette
  • Loading branch information
adamjamesreid authored Feb 1, 2024
1 parent f6f0b87 commit 0a099f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CourseMaterials/Demonstrations/08_Clustering.R
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,10 @@ plotSilBeeswarm <- function(silDat){
ggbeeswarm::geom_quasirandom(method="smiley", alpha=0.6) +
theme_bw()

plt <- scater:::.resolve_plot_colours(plt, silTab$closestCluster, "closestCluster")
plt <- plt + scale_color_manual(
values = scater:::.get_palette("tableau20"),
name = "closestCluster")

plt
}

Expand Down

0 comments on commit 0a099f8

Please sign in to comment.