(v2.1.1.9080) fix rescale_mic() for an outside MIC range

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2024-09-24 22:39:40 +02:00
1 parent 1ca40e8d67
commit a558f4c121
6 files changed
+31 -14

No files matched your search

+3 -3
View File
@@ -304,9 +304,9 @@ rescale_mic <- function(x, mic_range, keep_operators = "edges", as.mic = TRUE) {
# create a manual factor with levels only within desired range
expanded <- plotrange_as_table(x,
expand = TRUE,
keep_operators = ifelse(keep_operators == "edges", "none", keep_operators),
mic_range = mic_range)
expand = TRUE,
keep_operators = ifelse(keep_operators == "edges", "none", keep_operators),
mic_range = mic_range)
if (keep_operators == "edges") {
names(expanded)[1] <- paste0("<=", names(expanded)[1])
names(expanded)[length(expanded)] <- paste0(">=", names(expanded)[length(expanded)])