Skip to content

Commit

Permalink
add median line
Browse files Browse the repository at this point in the history
  • Loading branch information
allyhawkins committed Sep 1, 2023
1 parent c7a7d52 commit d434c7a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 27 deletions.
63 changes: 36 additions & 27 deletions celltype_annotation/analysis/04-cell-assign-delta-median.nb.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions celltype_annotation/utils/cellassign-helper-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ plot_probability <- function(celltype_assignments,
purrr::imap(\(plot_df, ref_name) {
ggplot(plot_df, aes(x = probability, y = celltype, fill = assigned_celltype)) +
ggridges::geom_density_ridges(alpha = 0.5) +
ggridges::stat_density_ridges(quantile_lines = TRUE, quantiles = 2) +
theme_bw() +
guides(x = guide_axis(angle = 90),
colour = guide_legend(override.aes = list(size = 2, alpha = 1))) +
Expand Down

0 comments on commit d434c7a

Please sign in to comment.