diff --git a/R/plot.visualisation_recipe.R b/R/plot.visualisation_recipe.R index 293acfeb3..0565c1945 100644 --- a/R/plot.visualisation_recipe.R +++ b/R/plot.visualisation_recipe.R @@ -5,8 +5,7 @@ plot.see_visualisation_recipe <- function(x, ...) { if (!"ggraph" %in% .packages()) { attachNamespace("ggraph") # Needs to be attached } - suppressWarnings(ggraph::ggraph(attributes(x)$data, layout = attributes(x)$layout) + - geoms_from_list(x)) + suppressWarnings(ggraph::ggraph(attributes(x)$data, layout = attributes(x)$layout) + geoms_from_list(x)) } else { suppressWarnings(ggplot2::ggplot(data = attributes(x)$data) + geoms_from_list(x, ...)) }