Skip to content

Commit

Permalink
chore: remove ggbeeswarm (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanouil authored Dec 5, 2022
1 parent 6e4cc85 commit 5f0d507
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 19 deletions.
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Type: Package
Package: NACHO
Title: NanoString Quality Control Dashboard
Version: 2.0.1
Version: 2.0.2
Authors@R:
c(person(given = "Mickaël",
family = "Canouil",
role = c("aut", "cre"),
email = "mickael@canouil.dev",
email = "pro@mickael.canouil.dev",
comment = c(ORCID = "0000-0002-3396-4549")),
person(given = "Roderick",
family = "Slieker",
Expand Down Expand Up @@ -39,7 +39,6 @@ Imports:
utils,
data.table,
ggplot2 (>= 3.3.0),
ggbeeswarm (>= 0.6.0),
ggforce (>= 0.3.1),
ggrepel (>= 0.8.1),
knitr (>= 1.25),
Expand All @@ -58,6 +57,6 @@ VignetteBuilder:
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.0
RoxygenNote: 7.2.2
SystemRequirements: pandoc (>= 1.12.3), pandoc-citeproc
Config/testthat/edition: 3
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# NACHO 2.0.2

## Chores

- In `DESCRIPTION`,
- chore: update email address.
- chore: remove `ggbeeswarm`.

**Full Changelog**: <https://github.com/mcanouil/NACHO/compare/v2.0.1...v2.0.2>

# NACHO 2.0.1

## Chores
Expand Down
28 changes: 18 additions & 10 deletions R/autoplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -314,17 +314,18 @@ plot_metrics <- function(
{
if (show_outliers) {
list(
ggbeeswarm::geom_quasirandom(
ggplot2::geom_point(
data = ~ .x[!(is_outlier)],
size = size, width = 0.25, na.rm = TRUE, groupOnX = TRUE
size = size, width = 0.25, na.rm = TRUE,
position = ggplot2::position_jitter(width = 0.25)
),
ggbeeswarm::geom_quasirandom(
ggplot2::geom_point(
data = ~ .x[(is_outlier)],
size = size * outliers_factor,
colour = "#b22222",
width = 0.25,
na.rm = TRUE,
groupOnX = TRUE
position = ggplot2::position_jitter(width = 0.25)
),
if (!is.null(outliers_labels)) {
ggrepel::geom_label_repel(
Expand All @@ -336,7 +337,10 @@ plot_metrics <- function(
}
)
} else {
ggbeeswarm::geom_quasirandom(size = size, width = 0.25, na.rm = TRUE, groupOnX = TRUE)
ggplot2::geom_point(
size = size, width = 0.25, na.rm = TRUE,
position = ggplot2::position_jitter(width = 0.25)
)
}
} +
ggplot2::labs(
Expand Down Expand Up @@ -443,17 +447,18 @@ plot_cg <- function(
{
if (show_outliers) {
list(
ggbeeswarm::geom_quasirandom(
ggplot2::geom_point(
data = ~ .x[!(is_outlier)],
size = size, width = 0.25, na.rm = TRUE, groupOnX = TRUE
size = size, width = 0.25, na.rm = TRUE,
position = ggplot2::position_jitter(width = 0.25)
),
ggbeeswarm::geom_quasirandom(
ggplot2::geom_point(
data = ~ .x[(is_outlier)],
size = size * outliers_factor,
colour = "#b22222",
width = 0.25,
na.rm = TRUE,
groupOnX = TRUE
position = ggplot2::position_jitter(width = 0.25)
),
if (!is.null(outliers_labels)) {
ggrepel::geom_label_repel(
Expand All @@ -465,7 +470,10 @@ plot_cg <- function(
}
)
} else {
ggbeeswarm::geom_quasirandom(size = size, width = 0.25, na.rm = TRUE, groupOnX = TRUE)
ggplot2::geom_point(
size = size, width = 0.25, na.rm = TRUE,
position = ggplot2::position_jitter(width = 0.25)
)
}
} +
ggplot2::scale_y_log10(
Expand Down
2 changes: 1 addition & 1 deletion R/render.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#' If a path is provided with a filename in `output_file` the directory specified here will take precedence.
#' Please note that any directory path provided will create any necessary directories if they do not exist.
#' @param size [[numeric]] A numeric controlling point size
#' ([`ggplot2::geom_point()`] or #' [`ggbeeswarm::geom_beeswarm()`])
#' ([`ggplot2::geom_point()`]
#' or line size ([`ggplot2::geom_line()`]).
#' @param show_legend [[logical]] Boolean to indicate whether the plot legends should
#' be plotted (`TRUE`) or not (`FALSE`). Default is `TRUE`.
Expand Down
2 changes: 1 addition & 1 deletion man/NACHO-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/autoplot.nacho.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/print.nacho.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/render.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f0d507

Please sign in to comment.