Skip to content

Commit 9056449

Browse files
committed
add hexbin to imports, remove viridis, add missing rlang::
1 parent 5d93600 commit 9056449

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

DESCRIPTION

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ Suggests:
4040
testthat,
4141
purrr,
4242
viridis,
43-
DT
43+
DT,
44+
hexbin
4445
Remotes:
4546
github::EMSL-Computing/MetaCycData
4647
VignetteBuilder: knitr

R/mass_error_plot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ mass_error_plot <- function(cmsObj,
117117
}
118118

119119
if (log_color_scale) {
120-
p <- p + viridis::scale_fill_viridis(trans = "log")
120+
p <- p + ggplot2::scale_fill_viridis_c(trans='log')
121121
} else {
122-
p <- p + viridis::scale_fill_viridis()
122+
p <- p + ggplot2::scale_fill_viridis_c()
123123
}
124124

125125
plotly::ggplotly(p)

R/plot.CoreMSData.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ plot.CoreMSData <- function(x,
4242
dplyr::distinct(!!rlang::sym(mass_id)) %>%
4343
dplyr::tally() %>% dplyr::rename(Sample = sample_id, Monoisotopic = n)
4444

45-
Isotopic <- x$iso_data %>% dplyr::group_by(!!sym(sample_id)) %>%
46-
dplyr::distinct(!!sym(mass_id)) %>%
45+
Isotopic <- x$iso_data %>% dplyr::group_by(!!rlang::sym(sample_id)) %>%
46+
dplyr::distinct(!!rlang::sym(mass_id)) %>%
4747
dplyr::tally() %>%
4848
dplyr::rename(Sample = sample_id, Isotopic = n)
4949

0 commit comments

Comments
 (0)