diff --git a/R/visualisation_matrix.data.frame.R b/R/visualisation_matrix.data.frame.R index 9ffbc362..7af806d6 100644 --- a/R/visualisation_matrix.data.frame.R +++ b/R/visualisation_matrix.data.frame.R @@ -71,7 +71,7 @@ visualisation_matrix.data.frame <- function(x, at = "all", target = NULL, factor target <- names(x) } - if (is.numeric(target)) { + if (is.numeric(target) || is.logical(target)) { target <- names(x)[target] }