Skip to content

Commit

Permalink
refactor to remove forcats dep
Browse files Browse the repository at this point in the history
  • Loading branch information
dchiu911 committed Sep 28, 2023
1 parent 7c5435e commit 8d2816c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Expand Up @@ -38,7 +38,6 @@ Imports:
clv,
clValid,
dplyr (>= 0.7.5),
forcats,
ggplot2,
infotheo,
klaR,
Expand Down
2 changes: 1 addition & 1 deletion R/graphs.R
Expand Up @@ -92,7 +92,7 @@ get_cdf <- function(mat) {
purrr::flatten_dfc() %>%
tidyr::gather("Group", "CDF", names(.)) %>%
tidyr::separate("Group", c("k", "Method"), sep = "\\.") %>%
dplyr::mutate(k = forcats::fct_inseq(.data$k))
dplyr::mutate(k = factor(.data$k, levels = as.integer(unique(.data$k))))
}

#' @param main heatmap title. If `NULL` (default), the titles will be taken from
Expand Down

0 comments on commit 8d2816c

Please sign in to comment.