From cc30cd010c070d2b169e4f7c52a1ff770d051680 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 13 Oct 2023 10:09:04 +0200 Subject: [PATCH] fix warning --- R/plot.parameters_pca.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/plot.parameters_pca.R b/R/plot.parameters_pca.R index 0b10ae0fe..8d754ca67 100644 --- a/R/plot.parameters_pca.R +++ b/R/plot.parameters_pca.R @@ -33,6 +33,8 @@ data_plot.parameters_pca <- function(x, data = NULL, ...) { title <- paste0("Rotated loadings from ", title, " (", rotation_name, ")") } + # remove missing values in y, to avoid warning + dataplot <- dataplot[!is.na(dataplot$y), ] attr(dataplot, "info") <- list( "xlab" = "",