From a275ca923f7da4c907e557a809f3b59a36c09b16 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 18 Jun 2019 08:00:37 +0200 Subject: [PATCH] fix https://github.com/easystats/bayestestR/pull/176 --- R/plot.p_direction.R | 2 ++ 1 file changed, 2 insertions(+) diff --git a/R/plot.p_direction.R b/R/plot.p_direction.R index d9bfdc1f7..4b339213e 100644 --- a/R/plot.p_direction.R +++ b/R/plot.p_direction.R @@ -10,6 +10,8 @@ data_plot.p_direction <- function(x, data = NULL, ...){ stop("Package 'emmeans' required for this function to work. Please install it.", call. = FALSE) } data <- as.data.frame(as.matrix(emmeans::as.mcmc.emmGrid(data, names = FALSE))) + } else { + data <- as.data.frame(data) } if (ncol(data) > 1) {