Skip to content

Commit

Permalink
lintr
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 13, 2023
1 parent 501707c commit 529b252
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/plot.visualisation_recipe.R
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...))
}
Expand Down

0 comments on commit 529b252

Please sign in to comment.