From b33776d6246df25d2984087d6486f31ed28609dd Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 23 Jan 2022 21:23:46 +0100 Subject: [PATCH] Update visualisation_matrix.data.frame.R --- R/visualisation_matrix.data.frame.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] }