Skip to content

Commit

Permalink
Resolve #216
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Jan 31, 2025
1 parent 7211ada commit d2fb0c3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
src/*.o
src/*.so
src/*.dll
.Renviron
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Authors@R: c(
person("Leo", "Lahti", role=c("ctb"), email="leo.lahti@utu.fi", comment = c(ORCID = "0000-0001-5537-637X")),
person("Tuomas", "Borman", role = c("ctb"), comment = c(ORCID = "0000-0002-8563-8884"))
)
Version: 1.35.0
Date: 2024-07-18
Version: 1.35.1
Date: 2025-01-31
License: GPL-3
Title: Single-Cell Analysis Toolkit for Gene Expression Data in R
Description: A collection of tools for doing various analyses of
Expand Down
19 changes: 10 additions & 9 deletions R/plot_central.R
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,6 @@ NULL
do.call(geom_boxplot, box_args)
}

# Adding median, if requested.
if (show_median) {
plot_out <- plot_out +
stat_summary(
fun = median, fun.min = median, fun.max = median,
geom = "crossbar", width = 0.3, alpha = 0.8
)
}

# Adding points.
point_out <- .get_point_args(
colour_by, shape_by, size_by,
Expand All @@ -153,6 +144,16 @@ NULL
}
plot_out <- plot_out + do.call(point_FUN, point_out$args)


# Adding median, if requested, after points and violin geom.
if (show_median) {
plot_out <- plot_out +
stat_summary(
fun = median, fun.min = median, fun.max = median,
geom = "crossbar", width = 0.3, alpha = 0.8
)
}

# Flipping.
if (flipped) {
plot_out <- plot_out + coord_flip()
Expand Down

0 comments on commit d2fb0c3

Please sign in to comment.